[英]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.