windows 7 - Install openpyxl on python 2.7 on Win7 report: 'module' object has no attribute 'packaging' -


i had downloaded openpyxl2.2.2 , 2.2.4, unzipped them, entered folders , input "python setup.py install". reported below

traceback (most recent call last):       file "setup.py", line 30, in <module>       setuptools import setup, extension, find_packages     file "c:\python27\lib\site-packages\setuptools\__init__.py", line 11, in <module>       setuptools.extension import extension     file "c:\python27\lib\site-packages\setuptools\extension.py", line 8, in <module>      .dist import _get_unpatched     file "c:\python27\lib\site-packages\setuptools\dist.py", line 21, in <module>      packaging = pkg_resources.packaging  attributeerror: 'module' object has no attribute 'packaging' 

i'm assuming you're doing command prompt window. need change directory proper file.

let's moved unzipped folders c:\openpyxl

at command prompt window following:

  1. cd c:\openpyxl
  2. python setup.py install

make sure see setup.py folder directly in openpyxl folder, not subfolder.


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -