Python错误“ModuleNotFoundError:没有名为'requests'的模块”

2024-09-30 06:33:00 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试导入一个我知道已安装的模块,但我得到的是ModuleNotFoundError:没有名为“”的模块错误。 我怎样才能解决这个问题

HelendeMacBook-Pro:bin helendai$ pip3 list
Package    Version   
---------- ----------
certifi    2019.11.28
chardet    3.0.4     
idna       2.9       
pip        20.0.2    
requests   2.23.0    
setuptools 39.0.1    
urllib3    1.25.8    
wheel      0.31.0    
HelendeMacBook-Pro:bin helendai$ python3 /Users/helendai/PycharmProjects/Demo1/test.py 
Traceback (most recent call last):
  File "/Users/helendai/PycharmProjects/Demo1/test.py", line 2, in <module>
    import requests
ModuleNotFoundError: No module named 'requests'

enter image description here


Tags: 模块pytestbin错误pip3requestsusers

热门问题