简体   繁体   English

尝试导入 gspread 时没有名为“gspread”的模块

[英]No module named 'gspread' when trying to import gspread

I am trying to import gspread in Jupyter but this error keeps popping up: ModuleNotFoundError: No module named 'gspread'我正在尝试在 Jupyter 中导入 gspread 但此错误不断弹出: ModuleNotFoundError: No module named 'gspread'

I am using Python version 3.8.1 and pip version 19.3.1.我使用的是 Python 3.8.1 版和 pip 19.3.1 版。 I installed gspread in the command line and it all seems fine but when I try to import it in the notebook I always get an error.我在命令行中安装了 gspread,一切看起来都很好,但是当我尝试将它导入笔记本时,我总是遇到错误。 Also tried using PyCharm but the same error exists.也尝试使用 PyCharm 但存在相同的错误。 Please, help!请帮忙!

尝试使用以下命令在 Jupyter Notebook 中安装它:

!pip install gspread==3.6.0

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 导入错误:没有名为gspread或csv的模块? - Import error: No module named gspread or csv? ModuleNotFoundError:没有名为“ gspread”的模块 - ModuleNotFoundError: No module named 'gspread' 导入错误:没有名为 gspread 的模块 - ImportError: No module named gspread 没有名为“gspread”的模块,ModuleNotFoundError。 Python 中的导入问题 - No module named 'gspread', ModuleNotFoundError. Problem with import in Python ModuleNotFoundError:没有名为“gspread.models”的模块 - ModuleNotFoundError: No module named 'gspread.models' 安装后仍无法导入gspread模块 - unable to import gspread module despite being installed 使用python 3.4.3时无法导入gspread - Cant import gspread when using python 3.4.3 pyinstaller 无法使用 gspread 制作正确的 exe 文件。 ModuleNotFoundError:没有名为“gspread”的模块 - pyinstaller can't make correct exe file with gspread. ModuleNotFoundError: No module named 'gspread' Python 3.6没有名为'gspread'的模块-pyinstaller编译的可执行文件 - Python 3.6 no module named 'gspread' - pyinstaller compiled executable GSpread ImportError:没有名为oauth2client.service_account的模块 - GSpread ImportError: No module named oauth2client.service_account
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM