'How to install Openpyxl with pip
Solution 1:[1]
You need to ensure that C:\Python35\Scripts is in your system path. Follow the top answer instructions here to do that:
You run the command in windows command prompt, not in the python interpreter that you have open.
Press:
Win + R
Type CMD in the run window which has opened
Type pip install openpyxl in windows command prompt.
Solution 2:[2]
I had to do: c:\Users\xxxx>c:/python27/scripts/pip install openpyxl
I had to save the openpyxl files in the scripts folder.
Solution 3:[3]
(optional) Install git for windows (https://git-scm.com/) to get git bash. Git bash is much more similar to Linux terminal than Windows cmd.
Install Anaconda 3
https://www.anaconda.com/download/
It should set itself into Windows PATH. Restart your PC. Then pip should work in your cmd
Then in cmd (or git bash), run command
pip install openpyxl
Solution 4:[4]
- https://pypi.python.org/pypi/openpyxl download zip file and unzip it on local system.
- go to openpyxl folder where setup.py is present.
- open command prompt under the same path.
- Run a command: python setup.py install
- It will install openpyxl.
Solution 5:[5]
- Go to https://pypi.org/project/openpyxl/#files
- Download the file and unzip in your pc in the main folder, there's a file call setup.py
- Install with this command: python setup.py install
Solution 6:[6]
- go to command prompt, and run as Administrator
- in c:/> prompt -> pip install openpyxl
- once you run in CMD you will get message like, Successfully installed et-xmlfile-1.0.1 jdcal-1.4.1 openpyxl-3.0.5
- go to python interactive shell and run openpyxl module
- openpyxl will work
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Lee Taylor |
| Solution 2 | malioboro |
| Solution 3 | Haha TTpro |
| Solution 4 | |
| Solution 5 | Don Gonzalo Cortez Mayer |
| Solution 6 | Ashok |



