elfresno
Posts: 44
Joined: Sun May 21, 2017 5:19 pm

how to install openpyxl in python3

Wed Jan 01, 2020 6:57 am

Hi, I'm trying to install openpyxl in Python 3, but I can't. in python 2 there is no problem but with 3 it doesn't let me.
sudo pip3 install openpyxl
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-v2ejztbq/openpyxl
Storing debug log for failure in /root/.pip/pip.log
sudo apt-get install python3-openpyxl
Reading package lists... Done
Building dependency tree... 50%
Building dependency tree
Reading state information... Done
E: Unable to locate package python3-openpyxl

DirkS
Posts: 10363
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: how to install openpyxl in python3

Wed Jan 01, 2020 12:35 pm

Which OS + version does your Pi run on?
python3-openpyxl seems to be available on Debian/Raspbian Stretch and later (not on Jessie)
And did you do an update before trying to install the package?

The problem with the pip command could be that you run a version of pip / setuptools that's too old.
That should be evident from the log file.

Return to “Python”