Skip to content

Commit 8a46bc1

Browse files
authored
Added steps to configure PYTHONPATH
1 parent 49918e0 commit 8a46bc1

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,25 @@ Requirements
1515

1616
Python 2.7 and 3.6+.
1717

18+
## PYTHONPATH set up
19+
### *nix
20+
- Find the path to site-packages folders, for your python version. Usually it's under "/usr/lib/python2.7" (Unix) or "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7" (Mac)
21+
- export PYTHONPATH = ${PYTHONPATH}:.:/path/to/site-packages
22+
23+
Ideally you want this last line to be executed each time python command is launched. So you have to add it to ~/.bash_profile, ~/.bashrc or ~/.profile.
24+
25+
### Windows
26+
- Find the path to site-packages folders, for your python version. Usually it's under "C:\Python27".
27+
- Go to your Windows "Control Panel"
28+
- Open "System Settings"
29+
- Under "Advanced" tab, click on the "Environment Variables" button.
30+
- Check if "PYTHONPATH" variable is defined under the "System Variables" section.
31+
- If not defined yet, click on the "New" button and add it. The value of the varibale should be the path to site-packages (something like "C:\Python27").
32+
33+
34+
Now that you've added the site-packages folder, to the list of modules python command scans, when it starts, it time to verify it's working:
35+
- open python command prompt and type "help('modules')". Your should now see the list of modules installed under site-packages.
36+
1837
Installation
1938
============
2039

0 commit comments

Comments
 (0)