擅长:python、mysql、java
<p>试试这个:eval“$(pyenv init-)”</p>
<p>示例:</p>
<pre><code>$ python -V
Python 2.7.9
mac:~ $ eval "$(pyenv init -)"
mac:~ $ python -V
Python 3.5.0
</code></pre>
<p>更多信息:
<a href="https://github.com/yyuu/pyenv">https://github.com/yyuu/pyenv</a></p>