Consider this output
[root@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@cluster ~]# easy_install --version
distribute 0.6.10
[root@cluster ~]# find /opt -name python
/opt/rocks/lib/graphviz/python
/opt/rocks/bin/python
/opt
On 05/30/2017 09:27 PM, Mahmood Naderan via Python-list wrote:
Well yes. It looks in other folders
But
$ find /opt -name openpyxl
/opt/rocks/lib/python2.6/site-packages/openpyxl
So, your pip knows about a search path that python doesn't know.
That can have a number of reasons still and one
On 5/31/17, Dennis Lee Bieber wrote:
> On Tue, 30 May 2017 19:27:48 + (UTC), Mahmood Naderan via Python-list
> 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-pa
What is output from
$ pip ---version
$ easy_install --version
?
Maybe you have two pythons and only one pip?
$ find /opt -name python
$ find /usr -name python
$ find /opt -name pip
$ find /usr -name pip
On 5/30/17, Mahmood Naderan via Python-list wrote:
> Well yes. It looks in other folders
Well yes. It looks in other folders
>>> import openpyxl
# trying openpyxl.so
# trying openpyxlmodule.so
# trying openpyxl.py
# trying openpyxl.pyc
# trying /usr/lib64/python2.6/openpyxl.so
# trying /usr/lib64/python2.6/openpyxlmodule.so
# trying /usr/lib64/python2.6/openpyxl.py
# trying /usr/lib64
Well, on rocks there exist multiple pythons. But by default the active is 2.6.6
$ python -V
Python 2.6.6
I have to say that the script doesn't modify sys.path. I only use sys.argv[]
there
I can put all dependent modules in my project folder but that will be dirty.
Regards,
Mahmood
On Tues
On 05/30/2017 10:18 AM, Mahmood Naderan via Python-list wrote:
Hello,
Although I have installed a package via pip on a centos-6.6, python interpreter
still says there is no such package!
Please see the output below
$ python exread2.py input.xlsx tmp/output
Traceback (most recent call last):
Fi
Do you have /opt/rocks/lib/python2.6/site-packages on sys.path?
Does your exread2.py file manipulate sys.path in any way?
2017. 05. 30. 10:18 keltezéssel, Mahmood Naderan via Python-list írta:
> Hello,
> Although I have installed a package via pip on a centos-6.6, python
> interpreter still says
Hello,
Although I have installed a package via pip on a centos-6.6, python interpreter
still says there is no such package!
Please see the output below
$ python exread2.py input.xlsx tmp/output
Traceback (most recent call last):
File "/home/mahmood/excetest/exread2.py", line 1, in
from openpyxl