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

No comments:

Post a Comment