please help me im deadless i cant do anything im sad im mad
Videos
I'm working on a program that uses excel files, so I installed openpyxl (also pandas and rich). It worked previously (like a month or so ago) but when I went back to it today, VScode is saying that the modules can not be found and likewise python says they can not be found when I attempt to run it. I verified they are installed via pip but they still can not be found. So what's the deal? Is this a python problem or a VSCode problem?
EDIT: here is the code of the module.
Open the Command Palette (Ctrl+Shift+P), then select the Python: Select Interpreter. From the list, select the virtual environment in your project folder that starts with
.env.Run Terminal: Create New Integrated Terminal (Ctrl+Shift+` or from the Command Palette), which creates a terminal and automatically activates the virtual environment by running its activation script.
Install
sqlalchemyandmongoenginewith commandpip install. Once installing them successfully, there will intellisense when you import them and no warnings shown.

Besides, the folder .vscode is to store Workspace settings as well as debugging and task configurations.
To resolve the issue, perform the following steps:
- Open the Command Palette by pressing Ctrl+Shift+P on your keyboard.
- In the Command Palette, select Python: Clear Cache and Reload Window.
I had the same problem solved using instead of pip or easy install one of the following commands :
sudo apt-get install python-openpyxl
sudo apt-get install python3-openpyxl
The sudo command also works better for other packages.
While not quite what you ran into here (since you state that you are using python 2.7), for those who run into this issue and are using python 3, you may be unintentionally installing to python 2 instead. To force the install to python 3 (instead of 2) use pip3 instead.
See this thread for more info: No module named 'openpyxl' - Python 3.4 - Ubuntu
Hello everyone, I am trying to move a dictionary into excel. I am tried to do this using pandas, however when I try to run:
df_marks = pd.DataFrame({'name': ['test', 'test1']
Writer = pd.ExcelWriter('output.xlsx') df_marks.to_excel(writer) writer.save()
I get the error: 'from openpyxl.workbook import Workbook ModuleNotFoundError: No module named 'openpyxl'.
Also when I try to import openpyxl I get this error.
I am working inside a venv. I have installed Pandas 1.01 and openpyxl 3.03. I have uninstalled and reinstalled using pip multiple times but nothing seems to work.
Python 3.8 Windows 10
Hopefully anyone can help me. It would literally make my day. Thanks in advance.



