我在PyCharm中写了一段Python代码,并使用了以下语句:
import requests
但终端显示如下错误:
(venv) ahmad@Ahmad:~/Desktop/Spiders$ python test.py Traceback (most recent call last): File "test.py", line 1, in import requests ModuleNotFoundError: No module named 'requests'
但我已经安装了pip和requests。
(venv) ahmad@Ahmad:~/Desktop/Spiders$ python test.py Traceback (most recent call last): File "test.py", line 1, in import requests ModuleNotFoundError: No module named 'requests'
但我已经安装了pip和requests。