我有一个问题,我有一个问题的模块,我认为与Python3。
我的代码是这样的:import blabla, gspread, etc...
如果我尝试运行它,python3 myscript.py中的每个模块似乎都运行得很好,除了gspread。我收到这个错误:
Traceback (most recent call last):
File "z_schedule.py", line 3, in <module>
from z_database import *
File "/home/pi/Projects/InstaPy/z_database.py", line 3, in <module>
import gspread, gspread_formatting
ModuleNotFoundError: No module named 'gspread'我运行的是python3,我在pip和pip3上都安装了gspread。我也以同样的方式安装了oauth2。
我的代码曾经运行得很好,直到我更新了我的树莓派、InstaPy和Python3。有人知道如何修复它吗?谢谢。
发布于 2019-07-12 16:39:12
试试这个:
pip3 install gspread然后再次运行该脚本。我希望它能帮助解决这个问题。
https://stackoverflow.com/questions/54718196
复制相似问题