pip3 installs inside virtual environment with python3.6 failing due to ssl module not available

I followed the below steps for python3.6 installation in ubuntu 14.04 and virtualenv pip installs works fine. Python 3.6 Installation: sudo apt-get install python3-dev libffi-dev libssl-dev wget https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tgz tar xvf Python-3.6.0.tgz cd Python-3.6.0 ./configure –enable-optimizations make -j8 sudo make altinstall python3.6 If seeing the following error — zipimport.ZipImportError: can’t decompress data; zlib not available make: … Read more

Can pip.conf specify two index-url at the same time?

In your pip.conf, you will also have to add both of the index hosts as trusted, so would look something like this: [global] index-url = http://download.zope.org/simple trusted-host = download.zope.org pypi.org secondary.extra.host extra-index-url= https://pypi.org/simple http://secondary.extra.host/simple In this example, you have a primary index and two extra index urls and all hosts are trusted. If you don’t … Read more

OSX El Capitan: sudo pip install OSError: [Errno: 1] Operation not permitted

Instructions telling people to use sudo pip install are inherently wrong. If there is any tutorial out there which says you should use sudo pip then please file a bug against this package. The author is dis-educating the Python community, as time has proven sudo pip to be a broken practice. OSX El Capitan introduced … Read more