Having problem installing openyxl

2,114 views
Skip to first unread message

Code Eleven

unread,
Jan 27, 2011, 6:49:01 PM1/27/11
to openpyxl-users
Python 2.7.1

I tried "easy_install", seemed to execute fine but I get:


Traceback (most recent call last):
File "VitalSigns.py", line 1, in <module>
from openpyxl import load_workbook
ImportError: No module named openpyxl

When I "pydoc modules" it doesn't list openpyxl.

New to python of course :-(

Any help would be greatly appreciated.

Thanks,
Sonny

Code Eleven

unread,
Jan 27, 2011, 6:50:31 PM1/27/11
to openpyxl-users
I should mention I'm on OSX

Code Eleven

unread,
Jan 27, 2011, 11:12:47 PM1/27/11
to openpyxl-users
from openpyxl.reader.excel import load_workbook
ImportError: No module named openpyxl.reader.excel


On Jan 27, 3:49 pm, Code Eleven <cont...@code-eleven.com> wrote:

Code Eleven

unread,
Jan 27, 2011, 11:11:16 PM1/27/11
to openpyxl-users
Searching for openpyxl
Best match: openpyxl 1.2.3
Processing openpyxl-1.2.3-py2.6.egg
openpyxl 1.2.3 is already the active version in easy-install.pth

Using /Library/Python/2.6/site-packages/openpyxl-1.2.3-py2.6.egg
Processing dependencies for openpyxl
Finished processing dependencies for openpyxl



On Jan 27, 3:49 pm, Code Eleven <cont...@code-eleven.com> wrote:

Code Eleven

unread,
Jan 27, 2011, 11:14:54 PM1/27/11
to openpyxl-users
Output of sudo easy_install openpyxl:

Searching for openpyxl
Best match: openpyxl 1.2.3
Processing openpyxl-1.2.3-py2.6.egg
openpyxl 1.2.3 is already the active version in easy-install.pth

Using /Library/Python/2.6/site-packages/openpyxl-1.2.3-py2.6.egg
Processing dependencies for openpyxl
Finished processing dependencies for openpyxl


On Jan 27, 3:49 pm, Code Eleven <cont...@code-eleven.com> wrote:

Eric

unread,
Feb 1, 2011, 3:34:33 AM2/1/11
to openpyx...@googlegroups.com
Hi,
what interpreter are you using under OSX ? Did you install the one from python.org ? If yes, maybe you're running easy_install with the Apple-bundled version of python, but trying to execute your scripts using the version from python.org.

As you're using 2.7 I guess it's not the one bundled with OSX.

Check your PYTHONPATH variable, and make sure it includes the path to openpyxl directory, or fix the install path for easy_install to put libraries in the right site-packages directory (the used by 2.7).

Cheers,
Eric

2011/1/28 Code Eleven <con...@code-eleven.com>
Reply all
Reply to author
Forward
0 new messages