Python not able to find package but it is installed

Pavol Lisy pavol.lisy at gmail.com
Wed May 31 00:33:28 EDT 2017


On 5/31/17, Dennis Lee Bieber <wlfraed at ix.netcom.com> wrote:
> On Tue, 30 May 2017 19:27:48 +0000 (UTC), Mahmood Naderan via Python-list
> <python-list at python.org> declaimed the following:
>
>># trying /usr/lib/python2.6/site-packages/openpyxl.so
>># trying /usr/lib/python2.6/site-packages/openpyxlmodule.so
>># trying /usr/lib/python2.6/site-packages/openpyxl.py
>># trying /usr/lib/python2.6/site-packages/openpyxl.pyc
>>Traceback (most recent call last):
>>File "<stdin>", line 1, in <module>
>>ImportError: No module named openpyxl
>>
>>
>>
>>
>>But
>>
>>$ find /opt -name openpyxl
>>/opt/rocks/lib/python2.6/site-packages/openpyxl
>
>
> 	Which tells us that the running python is not configured to LOOK in
> /opt/rocks/...
>
> 	That means you need to modify the pythonpath environment to add your
> directory...

In case there are two python environment it could create mess.

Maybe problem started by adding /opt/rocks/bin into PATH manually? If
it is true I rather remove it, then <easy_install pip> and then <pip
install openpyxl>.



More information about the Python-list mailing list