PyPI中的包名稱不區分大小寫
pipenv install ,創建虛擬環境,如果當前文件夾有pipfile,創建虛擬環境的同時還會下載pipfile配置文件中的包
激活虛擬環境,使用 pipenv shell, 或者pipenv run ...
刪除虛擬環境,使用 pipenv --rm
推出虛擬環境,使用 exit
查看當前虛擬環境,使用 pipenv graph,或者 pip list
當出現提示:
Courtesy Notice: Pipenv found itself running within a virtual environment, so it will automatically use that environment, instead of creating its own for any project. You can set PIPENV_IGNORE_VIRTUALENVS=1 to force pipenv to ignore that envir
onment and create its own instead. You can set PIPENV_VERBOSITY=-1 to suppress this warning.
只需要在python命令控制台輸入:set PIPENV_VERBOSITY=-1即可