擅长:python、mysql、java
<p>这应该可以使用<a href="http://pypi.python.org/pypi/virtualenv" rel="nofollow">virtualenv</a>。您可以创建这样的virtualenv(在命令行):</p>
<pre><code>virtualenv -p /opt/python-2.7.1 mypythonenv
</code></pre>
<p>最后一位是环境要进入的新文件夹的名称。在</p>
<p>然后:</p>
^{pr2}$
<p>然后,您可以安装您想要的任何Python模块,它们将被安装在virtualenv中,而不需要任何超级用户权限。据我所知,你不能在那里使用.deb包,但是你可以在里面使用Python安装程序,比如pip或easy_install。在</p>