Contents
Type open . bash_profile. In the text file that pops up, add this line at the end: export PYTHONPATH=$PYTHONPATH:foo/bar. Save the file, restart the Terminal, and you’re done.
Where is Pythonpath Linux?
3 Answers
- PYTHONPATH is an environment variable.
- /usr/lib/python2.7 on Ubuntu.
- you shouldn’t install packages manually. Instead, use pip. …
- if you use pip or setuptools, then you don’t need to set PYTHONPATH explicitly.
Where is Pythonpath?
Most System Variables, PythonPath included, are added via “System Properties”. To access this right-click the Desktop icon titled “Computer” and select “Properties” from the context menu. This opens the main “System” window.