I used the command pip3 install openpyxl
, but I'm still getting the error, unresolved import 'openpyxl' .
How I can import the library or fix this error?
Enter the currently selected environment in the terminal: ( shortcut keys: Ctrl+Shift+` )I use a virtual environment.
Install the module " openpyxl
" in your currently selected VScode environment:
Reopen this file or reload VSCode after installation:
Check the installation:
We can see the installation package of the module " openpyxl
" under " .venv
" of the virtual environment used.
只需打开终端(如 vscode)并输入pip install openpyxl
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.