Modules appear to install, but fail on PyCharm

In screenshot 1, I can't import requests

So I go into File > Settings Project> Project Interpreter. I click requests  (which is already there because I've been trying to install it).

I try to install it: Then it says install, I click it, it opens the Available packages window, i click install. It installs. t says  "package successfully installed." Then I  close the available packages window, and re open in and it says it's not installed. I click install again, it says successfully installed, close the Available packages window, reopen it. 

I try to import it into the code, no luck. still fails just like the first screenshot. 

 

It's not that I can't install packages, it's that it says installed and doesn't.

 

Note: Also, I installed these both over the cmd. and I can import both of them fine via python cmd. 

 








0
1 comment
Avatar
Permanently deleted user

Sorry I was importing the wrong thing. I should have installed requests, not requests3 

 

All is working now.

0

Please sign in to leave a comment.