擅长:python、mysql、java
<p>完全删除python2.7并不是最好的选择,因为它是ubuntu的默认python版本,您可能会破坏一些依赖python的实用程序和程序。在</p>
<p>考虑使用virtual environment manager管理不同的库。我使用<a href="https://github.com/yyuu/pyenv" rel="nofollow">pyenv</a>进行python版本管理,<a href="http://virtualenvwrapper.readthedocs.org/en/latest/" rel="nofollow">virtualenvwrapper</a>用于python包管理。在</p>
<p>例如运行</p>
<pre><code>export PATH=/path/to/python3
source /usr/local/bin/virtualenvwrapper.sh
mkvirtualenv test no-site-packages
</code></pre>
<p>将为您创建一个干净的虚拟环境,您可以在其中安装任何需要的包,例如<code>Qt</code>。在</p>