Installing PyX under python 2.7.6
I am trying to install PyX in yosemite under python 2.7.6
Initial setting looks ok
python setup.py install
running install
running build
running build_py
running install_lib
running install_egg_info
Removing /Users/alkaloge/Library/Python/2.7/site-packages/PyX-0.12.1-py2.7.egg-info
Writing /Users/alkaloge/Library/Python/2.7/site-packages/PyX-0.12.1-py2.7.egg-info
but when trying to run the example
python hello.py
Traceback (most recent call last):
File "hello.py", line 1, in <module>
from pyx import *
ImportError: No module named pyx
Any help?
thank
+3
source to share
1 answer
Make sure this is a common problem, your CLI is using the correct Python version. Most users have multiple python versions, and your CLI only recognizes one. In your terminal window, type python and you will see what version you have. Also check where you installed PyX if it is not in another python directory.
-2
source to share