如何在pyenv上使用Python 3.5.1(在Mac上?)>

问题描述 投票:0回答:2

我安装了Python 3.5.1,然后运行了pyenv install 3.5.1,认为这将指向Python 3.5.1。但这没有用。

MBP-Oct-2016:~ user1$ python -V
Python 2.7.10
MBP-Oct-2016:~ user1$ pyenv versions
* system (set by /Users/user1/.pyenv/version)
  3.5.1

如何获得pyenv以使Python 3.5.1成为Python的默认版本?

我安装了Python 3.5.1,然后运行pyenv安装3.5.1,认为这将指向Python 3.5.1。但这没有用。 MBP-Oct-2016:〜user1 $ python -V Python 2.7.10 MBP-Oct-2016:〜user1 $ pyenv ...

python python-3.x macos pyenv
2个回答
0
投票

通常,您需要在/Users/user1/.pyenv/version中编写3.5.1。>


0
投票

警告:请勿直接触摸~/.pyenv/version。这不是推荐的方法。

© www.soinside.com 2019 - 2024. All rights reserved.