Let's assume that I set PYTHONPATH in .bashrc as below:
export PYTHONPATH=$PYTHONPATH:/ver2packages
And when I check my python path in Python 3:
$ python3
>>> import sys
>>> print(sys.path)
['', '/home/user', '/ver2packages', '/usr/lib/python3.4', '/usr/lib/python3.4/plat-x86_64-linux-gnu', '/usr/lib/python3.4/lib-dynload', '/usr/local/lib/python3.4/dist-packages', '/usr/lib/python3/dist-packages']
In ver2packages, if there are packages having the same name with packages for version 3, there might be conflicts and errors.
Is there a way to set pythonpath for each version of Python?
virtenvslink.filename.pthin/usr/lib/python27/dist-packages/and add one line which is the path tover2packages.