title: Python import library from tar.gz?
body: <p>I am working on a box which I don't have root access. However, there is a folder /share which would be accessed for everyone to read and write. </p>
  
  <p>I want to figure out a way to put python libraries so that everyone could access and use them. </p>
  
  <p>I figured out that I can put the egg file in the /share/pythonLib folder and in the python script. </p>
  
  <pre><code>import sys
  sys.path.append("/share/pythonLib/foo.egg")
  import foo
  </code></pre>
  
  <p>and it would work for everyone, however, I am not sure every library has egg version. For example, I am trying to install <a href="https://pypi.python.org/pypi/beautifulsoup4" rel="noreferrer">BeautifulSoup4</a> , however, there is only tar.gz file and I am not sure if it would be possible to convert to egg and ..etc.</p>
  
  <p>OR! I am wrong right at the BEGINNING, and there are indeed some pythonic magics like below:</p>
  
  <pre><code>magicadd /share/pythonLib/foo.tar.gz
  import foo
  </code></pre>