I have some spreadsheet reading code (using openpyxl) that works correctly on my Windows installation. On my Ubuntu Rackspace server, however, it fails with a named range error.

I notice that the openpyxl package on Ubuntu (which I installed last week using apt-get) is several years old (1.5.6). I'd like to install the newest version (1.6.2).

What tool can I use to install the newer version, or is it something I need to do manually?

有帮助吗?

解决方案

The Python packages available in the Ubuntu repositories generally don't get updated within an Ubuntu version, only when you upgrade to a newer Ubuntu release.

When you need newer versions of a Python package, you can use pip to get the newest version from the Python Package Index:

sudo pip install openpyxl

其他提示

Stuck on the same problem, this is what I did to fix it.

On linux machines you need to install via apt package manager:

sudo apt-get install python-openpyxl python3-openpyxl 
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top