Pip version:9.0.1
Python version:3.6.3
Operating system:Win7
Description:
I'm trying to install python libraries in my laptop but run into an SSL certificate error when running pip -install for any library. I have tried several suggestions from other posts but all of them didn't work.
Can someone kindly help me to resolve this SSL issue? Thanks in advance.
What I've run:
C:\Users\zhouweiq>pip install requests
Collecting requests
Could not fetch URL https://pypi.python.org/simple/requests/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_ACCESS_DENIED] tlsv1 alert access denied (_ssl.c:777) - skipping
Could not find a version that satisfies the requirement requests (from versions: )
No matching distribution found for requests
I also got the same issue but after configuring proxy it resolved.
Proxy in Windows-> internet options-> connections -> LAN settings.
Related
Running Spyder under the Anaconda package 3.8 with python 3.6. Ever since April I have been receiving an error trying to install packages using pip with the error:
Could not fetch URL https://pypi.python.org/simple/scrapy/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443)
Does anyone have any way I can rectify this issue. This doesn't happen at my home PC. Thanks
I am very new to Python world, so please be patient with me.
I have a Mac running High Sierra (10.13.4). I installed Python on it and I now have two Python 2.7.10 and 3.6.5
As per my understanding 2.7.10 is default for Mac and I should not tinker with it.
Now, I am trying to connect Python3 to MySQL. I am running following command:
pip install MySQL-python
but facing an error
Collecting MySQL-python3
Could not fetch URL https://pypi.python.org/simple/mysql-python3/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:645) - skipping
Could not find a version that satisfies the requirement MySQL-python3 (from versions: )
No matching distribution found for MySQL-python3
I tried the solution provided here
ssl.SSLError: tlsv1 alert protocol version
openssl 1.0.2o_1
pip --version: pip 9.0.1 from /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (python 3.5)
I tried to install virtualenv by running following commend:
sudo pip install virtualenv
but still getting an error:
Could not fetch URL https://pypi.python.org/simple/virtualenv/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:645) - skipping
Could not find a version that satisfies the requirement virtualenv (from versions: )
No matching distribution found for virtualenv
Can someone please help me out here? I am trying to find answers my own but have failed so far, so need help.
From the constance docs:
install the constance:
pip install django-constance
But I can not install it, with the error log:
$ pip3 install django-constance
Collecting django-constance
Could not fetch URL https://pypi.python.org/simple/django-constance/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:645) - skipping
Could not find a version that satisfies the requirement django-constance (from versions: )
No matching distribution found for django-constance
Check the python version you are running on e.g. 2.7 or 3.5. Then get an appropriate package version for the respective version you have and install it with pip install package-name==%.%.%where %.%.%Is the package version for your python version. Note that some packages are only released for only python2 while others are for python 3
The following output of your console:
There was a problem confirming the ssl certificate
indicates that there was a network problem while you were trying to install this dependency. It seems like it could be related to this issue:
pip install fails with "connection error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:598)"
solution propesed there was:
You may want to add the trusted hosts and proxy to your config file.
pip.ini (Windows) or pip.conf (unix)
[global]
trusted-host = pypi.python.org
pypi.org
files.pythonhosted.org
I hope that this helps.
I'm getting below error while installing Jupiter, does anyone came across similar issues.
pip3.5 install jupyter
Collecting jupyter
/grid/common/pkgs/python/v3.5.2/lib/python3.5/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
SNIMissingWarning
Could not fetch URL https://pypi.python.org/simple/jupyter/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:645) - skipping
Could not find a version that satisfies the requirement jupyter (from versions: )
No matching distribution found for jupyter
Here are the env details
OS: RHEL6
Python - 3.5.2
Pip: 9.0.1
Curl: 7.47.1
Openssl 1.0.1e
You can:
Go to Python root folder and run the "Install Certificates.command" file.
You may follow https://www.youtube.com/watch?v=BVS3U1OQzO4
I keep getting this SSL error when using pip on my mac. I have done a fresh install of the OS and it hasn't made any different. Turning the firewall off also doesn't make any difference. Anyone got any ideas?
Here's the error:
> Seans-Mac-mini:~ seanhatch$ pip3 install discord.py
Collecting discord.py
Could not fetch URL https://pypi.python.org/simple/discord-py/: There was a problem confirming the ssl certificate: EOF occurred in violation of protocol (_ssl.c:719) - skipping
Could not find a version that satisfies the requirement discord.py (from versions: )
No matching distribution found for discord.py
Discord.py was used as an example but it doesn't work for any packages.