title: Installing PIP Python 3.6.3 Ubuntu 16.04 Zlib Not Available, But It's Installed
body: <p>I'm trying to follow <a href="https://stackoverflow.com/a/44254088/1812319">this</a> tutorial on installing Python 3.6.3 and PIP with virtual environments, but when I get to <code>sudo python3.6 get-pip.py</code> I get the error </p>
  
  <pre><code>Traceback (most recent call last):
        File "get-pip.py", line 20061, in &lt;module&gt;
          main()
        File "get-pip.py", line 194, in main
      bootstrap(tmpdir=tmpdir)
        File "get-pip.py", line 82, in bootstrap
          import pip
      zipimport.ZipImportError: can't decompress data; zlib not available
  </code></pre>
  
  <p>but I have <code>zlib1g-dev</code> installed and don't know how to fix this problem. I've googled a lot and tried reinstalling, but haven't had any success.</p>
  
  <p>Sorry to start a new question, but I did not have enough Karma to comment on the other one. Any help would be greatly appreciated.</p>
  
  <p><strong>Update:</strong> I ended up installing everything from source instead of using any packages and it seems to be working. I was not able to solve the problem, but found an alternative way to get things working.</p>