Python not able to find package but it is installed

Mahmood Naderan nt_mahmood at yahoo.com
Wed May 31 07:09:39 EDT 2017


Consider this output

[root at cluster ~]# pip --version
pip 9.0.1 from /opt/rocks/lib/python2.6/site-packages/pip-9.0.1-py2.6.egg (python 2.6)
[root at cluster ~]# easy_install --version
distribute 0.6.10
[root at cluster ~]# find /opt -name python
/opt/rocks/lib/graphviz/python
/opt/rocks/bin/python
/opt/rocks/usr/bin/python
/opt/python
/opt/python/bin/python
[root at cluster ~]# find /usr -name python
/usr/include/google/protobuf/compiler/python
/usr/bin/python
/usr/share/doc/m2crypto-0.20.2/demo/Zope/lib/python
/usr/share/doc/m2crypto-0.20.2/demo/ZopeX3/install_dir/lib/python
/usr/share/doc/m2crypto-0.20.2/demo/Zope27/install_dir/lib/python
/usr/share/gdb/python
/usr/share/swig/1.3.40/python
[root at cluster ~]# find /opt -name pip
/opt/rocks/lib/python2.6/site-packages/pip-9.0.1-py2.6.egg/pip
/opt/rocks/bin/pip
[root at cluster ~]# find /usr -name pip
[root at cluster ~]#




So, yes there are multiple versions of python and it seems that the search location of pip and python are different. I will try to modify the path to see what is what.
 
Regards,
Mahmood



More information about the Python-list mailing list