So I wanted to upgrade my pip after seeing the error below(1), so I followed the instructions but then the error popped up saying something was wrong with my ssl certificate and all.
All the other posts i looked at only had solutions for windows, but am a mac user. I tried downloading the file directly from pypi.python/simple/pip/ but its just sitting in my downloads folder and I didn't know where to put it to run that version instead.
Results:
**(1)You are using pip version 9.0.1, however version 19.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
C02HG1BBDJWT:~ Sai$ pip install --upgrade pip
Could not fetch URL https://pypi.python.org/simple/pip/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) - skipping
Requirement already up-to-date: pip in /Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg
You are using pip version 9.0.1, however version 19.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.**
As you see I just got the ssl error message and another prompt to upgrade pip.
pip install --upgrade pip installs from PyPI regardless of where you have downloaded a wheel. To install from a wheel run
pip install --upgrade /path/to/downloaded/pip.whl
Related
I am getting this error while installing pygmaps package in pycharm.
Could not find a version that satisfies the requirement pygmaps (from versions: )
No matching distribution found for pygmaps
You are using pip version 10.0.1, however version 19.1.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
I have already upgraded pip version to 19.1.1, but still showing this error.
pip install git+https://github.com/thearn/pygmaps-extended can you try this one ?
if it doesnt work
https://code.google.com/archive/p/pygmaps/downloads go to this link and download it manually and add to your site-packages
(tensorflow) C:\Users>python -m pip install --upgrade pip
Collecting pip
Using cached https://files.pythonhosted.org/packages/c2/d7/90f34cb0d83a6c5631cf71dfe64cc1054598c843a92b400e55675cc2ac37/pip-18.1-py2.py3-none-any.whl
twisted 18.7.0 requires PyHamcrest>=1.9.0, which is not installed.
Installing collected packages: pip
Found existing installation: pip 10.0.1
Uninstalling pip-10.0.1:
Could not install packages due to an EnvironmentError: [WinError 5] 액세스가 거부되었습니다: 'c:\programdata\anaconda3\lib\site-packages\pip\_internal\basecommand.py'
Consider using the --user option or check the permissions.
You are using pip version 10.0.1, however version 18.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
I installed Anaconda3.7 and now I'm trying to install the tensorflow, but it seems the version of pip is problem.
So I typed 'python -m pip install --upgrade pip' command several times but it didn't work at all. Is there a way to install it?
I'm sorry. You messed Anaconda up with your pip install.
I had to reset my machine to factory settings, as reinstalling Anaconda gave me some conflict errors.
Once I reset my machine the command I typed was:
conda install tensorflow
you might also look into keras and theano.
Good luck buddy. You are not the only one to have done this. Anaconda is tricky like that.
Trying to upgrade pip in my terminal. Here's my code:
(env) macbook-pro83:zappatest zorgan$ pip install --upgrade pip
Could not fetch URL https://pypi.python.org/simple/pip/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:645) - skipping
Requirement already up-to-date: pip in ./env/lib/python3.5/site-packages
You are using pip version 8.1.2, however version 10.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Any idea what the problem is? I also get the same error There was a problem confirming the ssl certificate when I perform pip install django.
Edit pip install --upgrade pip -vvv returns:
1 location(s) to search for versions of pip:
* https://pypi.python.org/simple/pip/
Getting page https://pypi.python.org/simple/pip/
Looking up "https://pypi.python.org/simple/pip/" in the cache
Returning cached "301 Moved Permanently" response (ignoring date and etag information)
Looking up "https://pypi.org/simple/pip/" in the cache
Current age based on date: 23811
Freshness lifetime from max-age: 600
Freshness lifetime from request max-age: 600
Starting new HTTPS connection (1): pypi.org
Could not fetch URL https://pypi.python.org/simple/pip/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:645) - skipping
Installed version (8.1.2) is most up-to-date (past versions: none)
Requirement already up-to-date: pip in ./env/lib/python3.5/site-packages
Cleaning up...
You are using pip version 8.1.2, however version 10.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Managed to fix it (uninstall and reinstall pip) via the following command:
curl https://bootstrap.pypa.io/get-pip.py | python
a. Check your system date and time and see whether it is correct.
b. If the 1st solution doesn't fix it try using a lower security method:
pip install --index-url=http://pypi.python.org/simple/linkchecker
This bypasses HTTPS and uses HTTP instead, try this workaround only if you are in a hurry.
c. Try downgrading pip to a version that does not use SSL verification by:
pip install pip==1.2.1
and then upgrade pip back again to the newer version by:
pip install --upgrade pip
d. If nothing of the above works, uninstall pip and reinstall it.
You can get more details about upgrade failed by using
$ pip install --upgrade pip -vvv
there will be more details help you debug it.
Try
pip --trusted-host pypi.python.org install --upgrade pip
Maybe useful.
Another solution:
$ pip install certifi
then run install.
This question already has answers here:
Not able to install Python packages [SSL: TLSV1_ALERT_PROTOCOL_VERSION]
(17 answers)
Closed 4 years ago.
On my Macbook Pro, I use Anaconda Navigator 1.8.2. for Python2 when I installed it.
I use I've used this link, successfully install a
python3.6 Kernel into jupyter notebook. :https://ipython.readthedocs.io/en/latest/install/kernel_install.html
I try the same procedure, by changing python3 to python3.5 (3.6.4 and 3.5.4 respectively if you call which python3 or python3.5 on my mac). Note that the python 3.5 is just downloaded and installed few hours ago from: https://www.python.org/downloads/release/python-354/
and I chose: Mac OS X 64-bit/32-bit installer, to complete the installation
Then I do the following as instructed by Ipython Document: run python3.5 -m pip install ipykernel in terminal
But error goes:
Collecting ipykernel
Could not fetch URL https://pypi.python.org/simple/ipykernel/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:719) - skipping
Could not find a version that satisfies the requirement ipykernel (from versions: )
No matching distribution found for ipykernel
You are using pip version 9.0.1, however version 9.0.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Then I try to upgrade the pip by running this code in terminal: python3.5 -m pip install --upgrade pip
But there is still error:
Could not fetch URL https://pypi.python.org/simple/pip/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:719) - skipping
Requirement already up-to-date: pip in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages
You are using pip version 9.0.1, however version 9.0.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
It looks like it's the python3.5's problem, but right now I have no idea what's going on under the hood. If you know how to solve it, please share with me. Thank you
From your Mac terminal, try to upgrade pip as follows:
curl https://bootstrap.pypa.io/get-pip.py | python
Your issue seems to be related to the recent TLS deprecation for pip. Python.org sites are stopping support for TLS versions 1.0 and 1.1. See this other answer if you'd like to know more details.
error when installing some package but its actualy existing example django-ajax-filtered-fields==0.5
Downloading/unpacking django-ajax-filtered-fields==0.5 (from -r
requirements.example.pip (line 13)) Could not find any downloads
that satisfy the requirement django-ajax-filtered-fields==0.5(from
-r requirements.example.pip (line 13))
No distributions at all found for django-ajax-filtered-fields==0.5 Storing debug log for failure in /home/pd/.pip/pip.log
(peecs)pd#admin:~/proj/django/peecs$ pip install
django-ajax-filtered-fields==0.5 --allow-unverified
django-ajax-filtered-fields==0.5 Downloading/unpacking
django-ajax-filtered-fields==0.5 Could not find any downloads that
satisfy the requirement django-ajax-filtered-fields==0.5 Some
externally hosted files were ignored (use --allow-external
django-ajax-filtered-fields to allow). Cleaning up... No distributions
at all found for django-ajax-filtered-fields==0.5 Storing debug log
for failure in /home/pd/.pip/pip.log
Note that this error may also occure because you are using too old version of pip. Then it can be solved by:
pip install --upgrade pip
You can check your version by:
pip --version
I got the solution ,Try with --allow-unverified
syntax: pip install packagename=version --allow-unverified packagename
Some package condains insecure and unverifiable files. it will not download to the system . and it can be solved by using this method --allow-unverified. it will allow the installation.
Eg: pip install django-ajax-filtered-fields==0.5 --allow-unverified
django-ajax-filtered-fields
Proxy Settings
Still unsure if my issue has the same cause as with the OP, but one error message was the same:
Cannot fetch index base URL https://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement Django
No distributions at all found for Django
Talking to a colleague exposed it was a site-security-based issue.
The following commands were required:
set https_proxy=*https proxy*
set http_proxy=*http proxy*
pip install Django
where *https proxy* and *http proxy* are appropriate URLs-with-ports for our site.
Downloading/unpacking Django
Installing collected packages: Django
Successfully installed Django
Cleaning up...
The only solution worked for me:
uninstall pip (pip uninstall pip)
download pip package from pypi (https://pypi.org/project/pip/)
execute python setup.py install (not using easy_install)
then you can install any package you want.
Inspecting the logs reveals the following line:
less .pip/pip.log
Could not fetch URL https://pypi.python.org/simple/WSGIUtils/: connection error: [Errno1] _ssl.c:493: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
In an earlier version of the comment I attributed this behaviour to https://pypi.python.org, but this is not the issue, since I can contact this site (from another computer!) with firefox and all certificates are OK. So this is probably a problem of some installations of pip---I encounter it unter SLES 11 which has (among other things) the "oldstable" openssl-0.9.8.
Try upgrading pip.
Version 7.1.2 does not have this issue.
easy_install pip==7.1.2
Lots of solutions to this, most effectively coming down to update PIP.
On MacOS (Sierra), This was my solution:
Download python3 installer of choice
Install Package (this includes a newer version of pip)
Remove old version of python from $PATH in ~/.bash_login (new one added by installer)
pip3 install packagename (no sudo)
After that I was still prompted to update pip and did so: pip3 install --upgrade pip
You can install the library manually:
git clone https://github.com/roddds/django-ajax-filtered-fields.git
then go to the folder:
pip install .
I did following to install Openpyxl in Python version 3.5 after the following error with command
pip install openpyxl --allow-unverified openpyxl
DEPRECATION: --allow-unverified has been deprecated and will be removed in the future. Due to changes in the repository protocol, it no longer has any effect.
Collecting openpyxl
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x00000000044AF080>, 'Connection to pypi
.python.org timed out. (connect timeout=15)')': /simple/openpyxl/
Operation cancelled by user
C:\Softwares\Python\Scripts>set https_proxy=My proxy
C:\Softwares\Python\Scripts>pip install openpyxl --allow-unverified openpyxl
DEPRECATION: --allow-unverified has been deprecated and will be removed in the future. Due to changes in the repository protocol, it no longer has any effect.
Collecting openpyxl
Downloading openpyxl-2.4.8.tar.gz (156kB)
100% |████████████████████████████████| 163kB 3.7MB/s
Collecting jdcal (from openpyxl)
Downloading jdcal-1.3.tar.gz
Collecting et_xmlfile (from openpyxl)
Downloading et_xmlfile-1.0.1.tar.gz
Installing collected packages: jdcal, et-xmlfile, openpyxl
Running setup.py install for jdcal ... done
Running setup.py install for et-xmlfile ... done
Running setup.py install for openpyxl ... done
Successfully installed et-xmlfile-1.0.1 jdcal-1.3 openpyxl-2.4.8
That worked! Thanks Martin F for your tip.