Larry Lustig
Larry Lustig

Reputation: 51000

How to install current OpenPYXL package on Ubuntu

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?

Upvotes: 8

Views: 35576

Answers (2)

Oleg Shkliaiev
Oleg Shkliaiev

Reputation: 111

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 

Upvotes: 6

Marius
Marius

Reputation: 60160

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

Upvotes: 6

Related Questions