Reputation: 17089
I've got both Python2.7 and Python3.4 installed on my computer.
I've installed Numpy for both 2.7 and 3.4, but can't figure out how to specify the PYTHONPATH variable so that 2.7 uses Numpy2.7 and 3.4 uses Numpy3.4. Is there a Python3-specific path variable I can set?
Upvotes: 1
Views: 232
Reputation: 76837
As @Wooble said, you shouldn't need to set PYTHONPATH
at all if you've properly installed modules.
To verify whether you are picking up the right files, go to your shell, and there, run the following
$ python2.7
>>> import numpy
>>> numpy.version # This prints file path to numpy
<module 'numpy.version' from '/home/user/ENV/local/lib/python2.7/site-packages/numpy/version.pyc'>
>>> numpy.version.full_version
'1.8.1'
By using the above, you can ensure that you are using the correct versions.
Upvotes: 1