Jan-06-2021, 03:06 PM
(Jan-06-2021, 02:31 PM)snippsat Wrote: You should not have arequests
folder under root python 3.9.
Rename or remove it as when import requests it will try to read from it.
If you dopip show requests
so should the last destination folder always besite-packages
ordist-packages
(a Debian-specific convention).
Thanks for the reply.
I renamed the folder, and now the error is:
Error:Traceback (most recent call last):
File "/home/osboxes/PycharmProjects/pythonProject/main.py", line 1, in <module>
import requests
ModuleNotFoundError: No module named 'requests'
when I try to install it, it is already installed:Quote:$pip3 install requests
Requirement already satisfied: requests in /usr/local/lib/python3.9/dist-packages (2.25.1)