Can't Install Packages

Using PyCharm Pro 2018.1 on Mac. I've not had issues installing packages in the past, but now can't. 

Using the menu (PyCharm / Preferences / Project Interpreter / + ) to install the PIL library, I get the following error:

Collecting PIL
Could not fetch URL https://pypi.python.org/simple/pil/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:598) - skipping

Could not find a version that satisfies the requirement PIL (from versions: )
No matching distribution found for PIL

Through the command line using pip3.4 (I'm using Python3.4 in my venv), I get the following:

Downloading/unpacking PIL

  Cannot fetch index base URL https://pypi.python.org/simple/

  Could not find any downloads that satisfy the requirement PIL

Cleaning up...

No distributions at all found for PIL

From various articles on the forums and StackOverflow I've also tried:

1. Creating a pip.conf file containing:

[global]
trusted-host = pypi.python.org

In both $home/Library/Application Support/pip $home/.config/pip

2. Adding https://pypi.python.org/pypi to the list of repositories in Manage Repositories (but it won't actually save the new repository)

3. Replacing the existing https://pypi.python.org/simple repository with https://pypi.python.org/pypi (also won't actually save the changes).

4. I tried to install a few other packages just to see if there was something wrong with PIL, all failed similarly.

Any suggestions? Help is greatly appreciated, I've grown fond of PyCharm and don't want to go back to a text editor :-) 

0
2 comments
Avatar
Permanently deleted user

I've been having this issue too. Tried this (https://stackoverflow.com/questions/49768770/not-able-to-install-python-packages-ssl-tlsv1-alert-protocol-version) and it seems to have resolved it for me. Having to do it on a project by project basis to get things going though.

0
Avatar
Permanently deleted user

hello,

Looks like I also had this problem.

I solved It by installing anaconda and making it the project interpreter through pyharm 

0

Please sign in to leave a comment.