Wednesday, November 4, 2015

Set PYTHONPATH Environment Variable OpenSUSE

1. Open Terminal
2. Type:
 which Python
it will show the path where python is installed.
For example: /usr/bin/python

3. Now, type the following command:

export PYTHONPATH=$PYTHONPATH:/usr/bin/python

4. Now you're all set. Just to make sure, type following command:
printenv | grep PYTHON
or
printenv PYTHONPATH
that should show you :
PYTHONPATH=:/usr/bin/python

if the pythonpath is not set, it shows:
PYTHONPATH=

No comments:

Post a Comment