Python, Solaris 10, pip install complains about absent pkg_resources

Carsten Grzemba grzemba at contac-dt.de
Thu May 18 09:14:12 CEST 2017


On 17.05.17 22:09, Don Walters via users  <users at lists.opencsw.org> wrote: 
> 
> 
> 
> I want to use openpyxl for writing excel files via python.
> 
> 
> 
> I've got 25 years unix shell scripting, but am green at python.
> 
> 
> 
> I did:
> 
>  pip install openpyxl
> 
> and received:
> 
>  Traceback (most recent call last):
> 
>  File "/usr/bin/pip", line 8, in <module>
> 
>  from pkg_resources import load_entry_point
> 
>  ImportError: No module named pkg_resources
> 
> 
> Oddly, I notice there _is_ a directory called "pkg_resources" located at:
> 
>  /opt/csw/lib/python2.6/site-packages
> 
> 
> 
> ​I'm sure there's a "python.cfg" file or something I need to edit to tell python where to look.
> 
> 
> 
> Can someone please give me the hint?
> 
> 
> 
> 
> 
First of all check which Python you use! If you run /usr/bin/pip than probably you use OS system Python at /usr not OpenCSW Python, so it can only use modules in /usr/lib/python*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencsw.org/pipermail/users/attachments/20170518/f7f41732/attachment.html>


More information about the users mailing list