Install Openpyxl on python2.5 on Windows

痞子三分冷 提交于 2019-12-05 04:15:16

Just download it from here, extract it and copy the openpyxl-1.6.2\openpyxl folder into:

C:\Python27\Lib

That should do it (that directory should be added to your python path by default). That assumes default python installation directory. If you've got python installed elsewhere just put the openpyxl into the corresponding lib directory.

I was a fan of openpyxl but now, in the hindsight, I'd recommend driving Excel through the COM ports (so long as you've got the license for Excel).

Version 1.7 is the last version that works with Python 2.5. The decision to drop support for Python 2.5 was largely because Python 2.5 itself is no longer supported by the Python Software Foundation.

In python3 The above mention methods are not working. Just download the openpyxl from their official web site and extract the zipped folder. And you may place that folder on your desktop. After that navigate to the openpyxl folder from the cmd. what you have to do is execute the command

python setup.py install

and everything works fine !!!

ivan_pozdeev

As Charlie Clark stated, you need to install an old version:

easy_install "openpyxl<=1.7.0"

or

pip install "openpyxl<=1.7.0"

the string is a requirement specifier.

Just extract the folder you downloaded into C:\Python27\Lib and rename openpyxl-2.4.1 as openpyxl, then import the library as usual

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!