As a quick workaround, and assuming that you are on a bash-like terminal (Linux/OSX), you can try to export the PYTHONPATH environment variable:
export PYTHONPATH="${PYTHONPATH}:/usr/local/lib/python2.7/site-packages:/usr/lib/python2.7/site-packages"
For Python 2.7
More Related Contents:
- Importing modules from parent folder
- “ImportError: No module named site” on Windows
- Too many different Python versions on my system and causing problems
- How to install a Python package from within IPython?
- ImportError: No module named tensorflow
- Python: import module from another directory at the same level in project hierarchy
- Homebrew + Python on mac os x 10.8: Fatal Python error: PyThreadState_Get: no current thread importing mapnik
- What is __path__ useful for?
- How do I install Python libraries in wheel format?
- How to install Tensorflow on Python 2.7 on Windows?
- Installing lxml, libxml2, libxslt on Windows 8.1
- Windows path in Python
- “pip install unroll”: “python setup.py egg_info” failed with error code 1
- Install tkinter for Python
- Can’t import my own modules in Python
- Why doesn’t os.path.join() work in this case?
- Unable to set default python version to python3 in ubuntu
- Can’t load Python modules installed via pip from site-packages directory
- In Python, can I call the main() of an imported module?
- PIP: “Cannot uninstall ‘ipython’. It is a distutils installed project and thus we cannot accurately determine…” [duplicate]
- ImportError on python 3, worked fine on python 2.7
- how to install tensorflow on anaconda python 3.6
- Platform-independent file paths?
- How do I extend a python module? Adding new functionality to the `python-twitter` package
- How can I upgrade NumPy?
- Python – install script to system
- Python modules with identical names (i.e., reusing standard module names in packages)
- How can I import files in Python using sys.path.append?
- Why does tkinter (or turtle) seem to be missing or broken? Shouldn’t it be part of the standard library?
- How to reference python package when filename contains a period