title: Creating virtualenv using altinstall
body: <p>I have just done a fresh install of Linux Mint 17.3. It comes with both python 2.7 and 3.4. I usually work with multiple versions of python so I just do an altinstall and then for each project I create a virtualenv using the desired version of python. However im running into issues with the newly installed OS. First a few things i've already done following the install:</p>
  
  <pre><code>sudo apt-get update
  sudo apt-get install build-essential
  sudo apt-get install python-virtualenv
  sudo apt-get install python-pip
  </code></pre>
  
  <p>I did an altinstall of python3.3.5:</p>
  
  <pre><code>downloaded the source tarball
  ./configure --with-zlib
  sudo make
  sudo make altinstall
  </code></pre>
  
  <p>I then tried creating a virtualenv in a new folder to test:</p>
  
  <pre><code>virtualenv -p python3.3 venv
  </code></pre>
  
  <p>This gave an error:</p>
  
  <pre><code>no module named zlib
  </code></pre>
  
  <p>I've had this issue in the past, so I did:</p>
  
  <pre><code>sudo apt-get install python-dev
  sudo apt-get install zlib1g-dev
  </code></pre>
  
  <p>Now when I create the virtualenv the zlib error is gone, however im getting a new error and I can't seem to figure out how to fix it:</p>
  
  <pre><code>Running virtualenv with interpreter /usr/local/bin/python3.3
  Using base prefix '/usr/local'
  New python executable in venv/bin/python3.3
  Also creating executable in venv/bin/python
  Installing setuptools, pip, wheel...
  Complete output from command /home/vega/Documents...8/venv/bin/python3.3 -c "import sys, pip; sys...d\"] + sys.argv[1:]))" setuptools pip wheel:
  Traceback (most recent call last):
  File "&lt;string&gt;", line 1, in &lt;module&gt;
  File "/usr/local/lib/python2.7/dist-packages/virtualenv_support/pip-7.1.2-py2.py3-none-any.whl/pip/__init__.py", line 15, in &lt;module&gt;
  File "/usr/local/lib/python2.7/dist-packages/virtualenv_support/pip-7.1.2-py2.py3-none-any.whl/pip/vcs/subversion.py", line 9, in &lt;module&gt;
  File "/usr/local/lib/python2.7/dist-packages/virtualenv_support/pip-7.1.2-py2.py3-none-any.whl/pip/index.py", line 30, in &lt;module&gt;
  File "/usr/local/lib/python2.7/dist-packages/virtualenv_support/pip-7.1.2-py2.py3-none-any.whl/pip/wheel.py", line 35, in &lt;module&gt;
  File "/usr/local/lib/python2.7/dist-packages/virtualenv_support/pip-7.1.2-py2.py3-none-any.whl/pip/_vendor/distlib/scripts.py", line 14, in &lt;module&gt;
  File "/usr/local/lib/python2.7/dist-packages/virtualenv_support/pip-7.1.2-py2.py3-none-any.whl/pip/_vendor/distlib/compat.py", line 66, in &lt;module&gt;
  ImportError: cannot import name HTTPSHandler
  ----------------------------------------
  ...Installing setuptools, pip, wheel...done.
  Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 2363, in &lt;module&gt;
  main()
  File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 832, in main
  symlink=options.symlink)
  File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 1004, in create_environment
  install_wheel(to_install, py_executable, search_dirs)
  File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 969, in install_wheel
  'PIP_NO_INDEX': '1'
  File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 910, in call_subprocess
  % (cmd_desc, proc.returncode))
  OSError: Command /home/vega/Documents...8/venv/bin/python3.3 -c "import sys, pip; sys...d\"] + sys.argv[1:]))" setuptools pip wheel failed with error code 1
  </code></pre>
  
  <p>I read somewhere that this might have something to do with openssl so I did:</p>
  
  <pre><code>sudo apt-get install openssl
  sudo apt-get install libcurl4-openssl-dev
  </code></pre>
  
  <p>No luck, still having the same issue.</p>