pipenv不会自动更新环境缓存里面的python版本

需要手工删除替换:

否则python版本没有更新:

删除后重建:

也可以使用下面的pipenv命令重建virtualenv环境:

weli@192:~/w/etl-tasks|issue-16⚡*?
➤ pipenv --rm                                                                        17:57:14
Removing virtualenv (/Users/weli/.local/share/virtualenvs/etl-tasks--WUPwzcn)...
weli@192:~/w/etl-tasks|issue-16⚡*?
➤ pipenv install                                                                     17:57:20
Creating a virtualenv for this project...
Pipfile: /Users/weli/works/etl-tasks/Pipfile
Using /Users/weli/.pyenv/versions/3.10.10/bin/python3 (3.10.10) to create virtualenv...
⠇ Creating virtual environment...created virtual environment CPython3.10.10.final.0-64 in 1591ms
  creator CPython3Posix(dest=/Users/weli/.local/share/virtualenvs/etl-tasks--WUPwzcn, clear=False, no_vcs_ignore=False, global=False)
  seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/Users/weli/Library/Application Support/virtualenv)
    added seed packages: pip==22.2.2, setuptools==65.3.0, wheel==0.37.1
  activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator

✔ Successfully created virtual environment!
Virtualenv location: /Users/weli/.local/share/virtualenvs/etl-tasks--WUPwzcn
Installing dependencies from Pipfile.lock (4beb7a)...
pipenv shellTo activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.
weli@192:~/w/etl-tasks|issue-16⚡*?
➤ pipenv shell                                                                       17:57:51

My Github Page: https://github.com/liweinan

Powered by Jekyll and Theme by solid

If you have any question want to ask or find bugs regarding with my blog posts, please report it here:
https://github.com/liweinan/liweinan.github.io/issues