python - Unable to install packages using pip in virtualenv -


i trying install various python packages using pip in virtual environment couldn't install. if try install same package not in virtual environment gets installed. every time different errors. pasting 1 of errors below got while installing scrapy.

command "/home/namita/venv/bin/python -c "import setuptools, tokenize;file='/tmp/pip-build-ahl0d8/cffi/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-dk98du-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/namita/venv/include/site/python2.7/cffi" failed error code 1 in /tmp/pip-build-ahl0d8/cffi

and below mentioned warning:

/home/namita/venv/local/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:90: insecureplatformwarning: true sslcontext object not available. prevents urllib3 configuring ssl appropriately , may cause ssl connections fail. more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning. insecureplatformwarning

i tried visiting https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning not satisfied.

i tried visiting https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning not satisfied.

the solution quite clear :

if encounter warning, recommended upgrade newer python version, or use pyopenssl described in openssl / pyopenssl section.

if not want upgrade python version (>2.7.9), install following packages :

$ pip install pyopenssl ndg-httpsclient pyasn1 

it has been proven work other similar issues :


Comments