Install Scrapy on Mac OS X error SSL pip

1

Good, I am currently trying to install Scrapy on my MacOS but they are all problems, the first thing I enter in terminal is:

pip install scrapy

And he returns me:

You are using pip version 7.0.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Requirement already satisfied (use --upgrade to upgrade): scrapy in /usr/local/lib/python2.7/site-packages/Scrapy-1.2.1-py2.7.egg
Collecting Twisted>=10.0.0 (from scrapy)
  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/twisted/
  Could not find a version that satisfies the requirement Twisted>=10.0.0 (from scrapy) (from versions: )
No matching distribution found for Twisted>=10.0.0 (from scrapy)

Seeing the consideration he makes of updating, I do it ...

pip install --upgrade pip

And you return the following:

You are using pip version 7.0.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Requirement already up-to-date: pip in /usr/local/lib/python2.7/site-packages/pip-7.0.1-py2.7.egg

The truth is that yesterday I was doing a thousand tests and I returned another type of error:

"SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed"

But this last mistake does not show it to me anymore.

    
asked by Ramón Devesa 20.11.2016 в 14:37
source

2 answers

1

You can try to install / update pip with easy_install :

sudo easy_install pip

You can also try to download get-pip.py and run:

 sudo python get-pip.py #Una vez descargado el archivo

Then:

sudo pip install scrapy

Another option would also be to download setuptools and extract and execute:

python setup.py install
    
answered by 22.01.2017 в 04:30
0

I recommend you use virtualenv:

  • Install virtualenv pip install virtualenv
  • Enter a terminal and then create an instance of virtualenv virtualenv env where env is the name of the folder that will be generated
  • Then execute the source env/bin/active command from the folder where the virtualenv was generated
  • Finally, generate a requirements.txt outside the env folder, with the following content: Scrapy==1.4.0
  • Finally, execute the following command in the terminal where step 3 was performed: pip install -r requerimientos.txt
  • answered by 04.08.2017 в 01:30