In the pycharm, go to File->settings->project Interpreter Then click the right top corner + button you will get pop up window to install packages. Then search for openpyxl you will get the latest package. Then click Install package to install it.

Answer from user5777975 on Stack Overflow
🌐
Software Testing Help
softwaretestinghelp.com › home › python › hands-on python openpyxl tutorial with examples
Hands-on Python Openpyxl Tutorial With Examples
April 1, 2025 - It is a Python library that allows us to use Excel to perform actions like reading data and writing data. This Python library can be installed by just a single command pip install openpyxl. This module can be easily installed in PyCharm IDE ...
Discussions

Trying to import openpyxl but error occurs
Hello, I'm a Reddit bot who's here to help people nicely format their coding questions. This makes it as easy as possible for people to read your post and help you. I think I have detected some formatting issues with your submission: Python code found in submission text that's not formatted as code. Use of triple backtick/ curlywhirly code blocks (``` or ~~~). These may not render correctly on all Reddit clients. If I am correct, please edit the text in your post and try to follow these instructions to fix up your post's formatting. Am I misbehaving? Have a comment or suggestion? Reply to this comment or raise an issue here . More on reddit.com
🌐 r/learnpython
7
4
June 17, 2022
python - How to install openpyxl in PyCharm as I am getting this error message - Stack Overflow
I am trying to install openpyxl in PyCharm using command pip install openpyxl in terminal and I am getting the following error : WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=... More on stackoverflow.com
🌐 stackoverflow.com
how to fix "no module named openpyxl " in (pycharm) python 3.7? - Stack Overflow
CopyTraceback (most recent call last): File "/home/prasad/PycharmProjects/test/hello.py", line 1, in import openpyxl as xl ModuleNotFoundError: No module named 'openpyxl' i tried pip3 install openpyxl , but it didn't rectify the error. More on stackoverflow.com
🌐 stackoverflow.com
July 21, 2019
Use pip or conda to install openpyxl - Getting Started - Datalore Forum
When I tried to read a xlsx file (xls = pd.ExcelFile(‘yelp.xlsx’)), I got a msg: 'ImportError: Missing optional dependency ‘openpyxl’. Use pip or conda to install openpyxl. Anyone can help me to figure it out? Thanks a lot More on datalore-forum.jetbrains.com
🌐 datalore-forum.jetbrains.com
0
November 29, 2021
🌐
Python.org
discuss.python.org › python help
I can't install any package on my PyCharm IDE - Python Help - Discussions on Python.org
February 12, 2025 - Hello, I have a problem with installing pipy package ‘openpyxl’. I tried installing it from settings, I tried downgrading my python version( I have 3.11.0 now ). I tried via terminal with command pip install openpyxl a…
🌐
Bobby Hadz
bobbyhadz.com › blog › python-no-module-named-openpyxl
ModuleNotFoundError: No module named 'openpyxl' in Python | bobbyhadz
April 8, 2024 - Alternatively, you can use the IDE itself to install the module. Click on "File" > "Settings" > "Project" > "Python Interpreter". Click on the + icon and type openpyxl. Click on "Install Package".
🌐
Reddit
reddit.com › r/learnpython › trying to import openpyxl but error occurs
r/learnpython on Reddit: Trying to import openpyxl but error occurs
June 17, 2022 -

I am trying to install openpyxl in pycharm using pip install openpyxl, however when I import the openpyxl module, an error occurs.

I am using Pycharm on Ubuntu tho.

What I typed in terminal to install openpyxl:

pip install openpyxl

What returned:

Traceback (most recent call last):
  File "/home/sheikhmugees/PycharmProjects/Python with Mosh/venv/bin/pip", line 7, in <module>
    from pip._internal.cli.main import main
  File "/home/sheikhmugees/PycharmProjects/Python with Mosh/venv/lib/python3.8/site-packages/pip/_internal/cli/main.py", line 9, in <module>
    from pip._internal.cli.autocompletion import autocomplete
  File "/home/sheikhmugees/PycharmProjects/Python with Mosh/venv/lib/python3.8/site-packages/pip/_internal/cli/autocompletion.py", line 10, in <module>
    from pip._internal.cli.main_parser import create_main_parser
  File "/home/sheikhmugees/PycharmProjects/Python with Mosh/venv/lib/python3.8/site-packages/pip/_internal/cli/main_parser.py", line 8, in <module>
    from pip._internal.cli import cmdoptions
  File "/home/sheikhmugees/PycharmProjects/Python with Mosh/venv/lib/python3.8/site-packages/pip/_internal/cli/cmdoptions.py", line 23, in <module>
    from pip._internal.cli.parser import ConfigOptionParser
  File "/home/sheikhmugees/PycharmProjects/Python with Mosh/venv/lib/python3.8/site-packages/pip/_internal/cli/parser.py", line 12, in <module>
    from pip._internal.configuration import Configuration, ConfigurationError
  File "/home/sheikhmugees/PycharmProjects/Python with Mosh/venv/lib/python3.8/site-packages/pip/_internal/configuration.py", line 26, in <module>
    from pip._internal.utils.logging import getLogger
  File "/home/sheikhmugees/PycharmProjects/Python with Mosh/venv/lib/python3.8/site-packages/pip/_internal/utils/logging.py", line 13, in <module>
    from pip._internal.utils.misc import ensure_dir
  File "/home/sheikhmugees/PycharmProjects/Python with Mosh/venv/lib/python3.8/site-packages/pip/_internal/utils/misc.py", line 40, in <module>
    from pip._internal.locations import get_major_minor_version, site_packages, user_site
  File "/home/sheikhmugees/PycharmProjects/Python with Mosh/venv/lib/python3.8/site-packages/pip/_internal/locations/__init__.py", line 14, in <module>
    from . import _distutils, _sysconfig
  File "/home/sheikhmugees/PycharmProjects/Python with Mosh/venv/lib/python3.8/site-packages/pip/_internal/locations/_distutils.py", line 9, in <module>
    from distutils.cmd import Command as DistutilsCommand
ModuleNotFoundError: No module named 'distutils.cmd'

And here's my code:

import openpyxl as xl

wb = xl.load_workbook('translations.xlsx')
sheet = wb['Sheet1']
cell = sheet['a1']

print(cell)

and this is what comes when it runs:

  File "/home/sheikhmugees/PycharmProjects/Python with Mosh/main.py", line 1, in <module>
    import openpyxl as xl
ModuleNotFoundError: No module named 'openpyxl'
🌐
YouTube
youtube.com › watch
How to Easily Install Pandas and OpenPyXL Modules in Python Using PyCharm - YouTube
Learn how to install important Python modules like `Pandas` and `OpenPyXL` in PyCharm to manage and analyze Excel files efficiently!---This video is based on...
Published: April 15, 2025
Views: 3
Find elsewhere
🌐
GeeksforGeeks
geeksforgeeks.org › installation guide › how-to-install-openpyxl-in-python-on-windows
How to Install openpyxl in python on windows - GeeksforGeeks
November 7, 2022 - Openpyxl is a Python library for reading and writing Excel files with extensions like xlsx, xlsm, xltx, xltm. It provides different modules to process Excel files without involving any other third-party software. This article will teach you how to install the openpyxl library in Python on Windows Operating System.
🌐
Python Forum
python-forum.io › thread-38296.html
Importing openpyxl
September 26, 2022 - I have imported openpyxl. However, if I use the following line import openpyxlI get the ModuleNotFoundError: No module named 'openpyxl'?I was in C:\Users\Aziz\AppData\Local\Programs\Python\Python310\S
🌐
YouTube
youtube.com › codemy.com
Install OpenPyXL- Python and Excel With OpenPyXL #3 - YouTube
In this video we'll install OpenPyXL.To install openpyxl we'll use the terminal and pip, the python installation program.Installing openpyxl from the termina...
Published: April 12, 2021
Views: 58K
🌐
YouTube
youtube.com › watch
How To Install OpenPYXL library - YouTube
OpenPYXL is the library that allows you to create and read Excel files from your Python programs. I have incorporated this into my lastest version of Tradin...
Published: May 15, 2020
🌐
YouTube
youtube.com › watch
How to Install openpyxl in Python on windows 10/11 ? - YouTube
How to Install openpyxl in Python on windows ?- py -m pip install openpyxl- https://pypi.org/project/openpyxl/#files- py setup.py installMusic:chill. by saku...
Published: December 25, 2022
🌐
Datalore Forum
datalore-forum.jetbrains.com › getting started
Use pip or conda to install openpyxl - Getting Started - Datalore Forum
November 29, 2021 - When I tried to read a xlsx file (xls = pd.ExcelFile(‘yelp.xlsx’)), I got a msg: 'ImportError: Missing optional dependency ‘openpyxl’. Use pip or conda to install openpyxl. Anyone can help me to figure it out? Thanks a …
🌐
Quora
quora.com › How-do-I-install-OpenPYXL-in-Python
How to install OpenPYXL in Python - Quora
Answer (1 of 2): Like you install almost any Python library: [code]pip install openpyxl [/code]
🌐
Pythontutor
pythontutor.net › openpyxl.php
Openpyxl Tutorial - A Guide to Python Excel Library Openpyxl
If you want to download openpyxl package on your computer you may use this source. It also provides you information in case if you are not sure which version to choose. If you want to install openpyxl using pip command please use this line of code
🌐
Python.org
discuss.python.org › python help
Cannot install openpyxl - Python Help - Discussions on Python.org
October 12, 2022 - Hi, I’m trying to install openpyxl from pypi.org for a project with Excel files. I’ve typed pip install openpyxl in the terminal and installed it sucessfully. I have then import it with import openpyxl as xl. But when I…
🌐
Dev-guides
pip.dev-guides.com › openpyxl
How to Install openpyxl in Python — Guide & Error Fixes | Python Package Hub
pip install openpyxl==3.1.5 · pip uninstall openpyxl · pip show openpyxl · Last updated: 2026-04-12 • Data from PyPI · DataCamp — Python Courses · Udemy — Python for Beginners · PyCharm by JetBrains ·