0

I am installing packages like I normally do with Spyder inside the Ipython Console using the !pip, however in the last day I am getting this message:

 !pip install Scrapy
Collecting Scrapy
  Could not fetch URL https://pypi.python.org/simple/scrapy/: 
  There was a problem confirming the ssl certificate: [SSL: 
  CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:748) - 
  skipping
  Could not find a version that satisfies the requirement Scrapy (from 
 versions: )
  No matching distribution found for Scrapy
Tinkinc
  • 449
  • 2
  • 8
  • 21
  • have you set pypi.python.org as a trusted source? – Alireza Apr 27 '18 at 14:57
  • Yes I did in one and same error. Why all of a sudden I am shut out from this? – Tinkinc Apr 27 '18 at 14:59
  • try specifying a cert when attempting to install a package with: "!pip --cert path/to/cert install Scrapy – Alireza Apr 27 '18 at 15:07
  • Where do I find the cert path – Tinkinc Apr 27 '18 at 15:08
  • download the one here http://curl.haxx.se/ca/cacert.pem and then specify the path to it on your machine – Alireza Apr 27 '18 at 15:14
  • What pip version? `pip -V` See if its related to [this](https://stackoverflow.com/q/49748063/1526703) – Anupam Apr 27 '18 at 15:21
  • Possible duplicate of [pip install fails for every package ("Could not find a version that satisfies the requirement")](https://stackoverflow.com/questions/49748063/pip-install-fails-for-every-package-could-not-find-a-version-that-satisfies-th) – phd Apr 27 '18 at 16:56
  • pip 9.0.1 from C:\ProgramData\Anaconda3\lib\site-packages (python 3.6) – Tinkinc Apr 27 '18 at 17:05
  • `Could not fetch URL https://pypi.python.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777)'),))` – Tinkinc Apr 27 '18 at 17:22

0 Answers0