Python 3.x Pyenv:如何';重建';重建python后的virtualenvs

Python 3.x Pyenv:如何';重建';重建python后的virtualenvs,python-3.x,virtualenv,pyenv,Python 3.x,Virtualenv,Pyenv,我重建了Python3.7以使pyinstaller在Mac上工作,它似乎已经使用3.7.0删除了我所有的VirtualNV python版本的文件仍然存在,它们指向我期望的位置。但是当我运行'pyenv virtualenvs'时,根本没有python3环境,在项目目录中,python命令根本不起作用 3.7.0/envs/some-scripts``` ```$ ls ~/.pyenv/versions/3.7.0/envs/some-scripts/bin/ activate

我重建了Python3.7以使pyinstaller在Mac上工作,它似乎已经使用3.7.0删除了我所有的VirtualNV

python版本的文件仍然存在,它们指向我期望的位置。但是当我运行'pyenv virtualenvs'时,根本没有python3环境,在项目目录中,python命令根本不起作用

3.7.0/envs/some-scripts```


```$ ls ~/.pyenv/versions/3.7.0/envs/some-scripts/bin/
activate        chardetect      macho_find      netaddr         pydoc           pyi-makespec        python3
activate.csh        easy_install        macho_standalone    pip         pyi-archive_viewer  pyi-set_version
activate.fish       easy_install-3.7    mako-render     pip3            pyi-bindepend       pyinstaller
alembic         macho_dump      natsort         pip3.7          pyi-grab_version    python```


```$ pyenv virtualenvs
  2.7.10/envs/some-scripts-2 (created from /Users/mememe/.pyenv/versions/2.7.10)
  2.7.10/envs/gdrive (created from /Users/mememe/.pyenv/versions/2.7.10)
  arista-scripts-2 (created from /Users/mememe/.pyenv/versions/2.7.10)
  gdrive (created from /Users/mememe/.pyenv/versions/2.7.10)```

See? no 3, and no asterisk, despite being in the project directory.

我不知道您是如何重建pyenv的,不过对于我来说:

$ pyenv install $(previously installed python name to update)

重建python并更新垫片,一切正常

$ pyenv rehash