D
D
danila_cool_dude2018-03-09 22:30:57
Python
danila_cool_dude, 2018-03-09 22:30:57

Requests not working in PyCharm, what's the problem?

I've been learning python for a month and decided to write a program with requests, only something doesn't work: /
I downloaded it means requests

MacBook-Pro-Capitan:~ capitan$ sudo pip3 install requests
The directory '/Users/capitan/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/capitan/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied: requests in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages
Requirement already satisfied: certifi>=2017.4.17 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from requests)
Requirement already satisfied: urllib3<1.23,>=1.21.1 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from requests)
Requirement already satisfied: idna<2.7,>=2.5 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from requests)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from requests)

Everything works in IDLE, but PyCharm writes that there is no such module, can it somehow point to it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2018-03-10
@vintello

5aa38abfe774a008738518.png
and here in the console do
pip install requests

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question