Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 826
Larry Lustig Avatar asked Jul 22 '13 04:07

Larry Lustig


People also ask

How do I know if openpyxl is installed on Linux?

You can check if you have the openpyxl package installed by running the pip show openpyxl command. Copied! The pip show openpyxl command will either state that the package is not installed or show a bunch of information about the package, including the location where the package is installed.


1 Answers

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
like image 141
Marius Avatar answered Sep 21 '22 06:09

Marius