【发布时间】:2017-12-08 09:28:08
【问题描述】:
我已经在我的电脑中安装了 pip3 和 requests 包。即使在我的 shell 上运行命令 import requests 时,我仍然收到以下错误:
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import requests
ModuleNotFoundError: No module named 'requests'
我必须手动将所有包复制到我的工作目录以解决此异常。
【问题讨论】:
-
您在使用 Windows 吗?
-
您可能安装了多个 python 版本?
-
是的@doratheexplorer0911
-
你用什么shell来运行它 - cmd?
-
是的,我正在使用 Windows 10 @doratheexplorer0911
标签: python python-2.7 pip python-requests python-3.6