代码之家  ›  专栏  ›  技术社区  ›  Axil

在mac big sur上安装其他python版本后,pyenv版本没有显示任何内容

  •  1
  • Axil  · 技术社区  · 4 年前

    % pyenv versions 
    * system (set by /Users/axilaris/.pyenv/version)
    

    我知道我有python3.6(bigsur附带的)和3.8和3.9(我已经使用Python.pkg安装程序安装了)- https://www.python.org/downloads/

    我已经安装了pyenv使用

    brew install pyenv
    

    更新(以下是我在mac中发现的现有python):

    % pwd
    /Library/Frameworks/Python.framework/Versions
    % ls -al
    total 0
    drwxrwxr-x   6 root  wheel  192 Jan 11 14:18 .
    drwxr-xr-x   6 root  wheel  192 Jan 11 14:18 ..
    drwxrwxr-x  10 root  admin  320 Nov  8  2017 3.6
    drwxrwxr-x  10 root  admin  320 Jan  2 18:24 3.8
    drwxrwxr-x  11 root  admin  352 Jan 11 14:18 3.9
    lrwxr-xr-x   1 root  wheel    3 Jan 11 14:18 Current -> 3.9
    % python -V  
    Python 2.7.16
    % python3 -V
    Python 3.9.1
    
    
    in another location
    
    % ls -al
    total 0
    drwxr-xr-x   7 root  wheel  224 Jan  1  2020 .
    drwxr-xr-x   5 root  wheel  160 Jan  1  2020 ..
    lrwxr-xr-x   1 root  wheel    3 Jan  1  2020 2.3 -> 2.7
    lrwxr-xr-x   1 root  wheel    3 Jan  1  2020 2.5 -> 2.7
    lrwxr-xr-x   1 root  wheel    3 Jan  1  2020 2.6 -> 2.7
    drwxr-xr-x  11 root  wheel  352 Jan  1  2020 2.7
    lrwxr-xr-x   1 root  wheel    3 Jan  1  2020 Current -> 2.7
    % pwd
    /System/Library/Frameworks/Python.framework/Versions
    
    0 回复  |  直到 4 年前
        1
  •  0
  •   OneCricketeer Gabriele Mariotti    4 年前

    pyenv versions 仅显示已安装和管理的版本 作者:pyenv

        2
  •  0
  •   Dallas    4 年前

    pyenv install 3.7.4