On 17.05.17 22:09, Don Walters via users  <users@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*

Reply via email to