I am trying to install the Scrapy package (among others) for python using pip. I have tried doing the installation using python 3 and python 2, I have installed/upgraded the
pip install --trusted-host pypi.python.org autopep8 (any package name)
This command will add pypi.python.org to the trusted sources and will install all the required package.
pypi.python.org
I ran into the error myself and typing this command helped me install all the pip packages of python.