Showing posts with label PYTHONPATH. Show all posts
Showing posts with label PYTHONPATH. Show all posts

Wednesday, November 11, 2015

Set PYTHONPATH to bashrc [Clingo Python Environment Variable]

1. Open Terminal
2. Type the following Command:

vi ~/.bashrc

3. Add the following content
export PYTHONPATH=~/Documents/clingo-4.5.3-source/build/release/python
export PYTHONPATH=<path-to-gringo-sources>/build/release/python 
        Here, <path-to-gringo-sources> is the path to the gringo sources.

4. To save and exit, click "Shift" + ":" together and type "wq" and press Enter.

Now you're all done.

To ensure you did it right, type:

echo $PYTHONPATH
OR
printenv PYTHONPATH

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=