關於使用pipenv管理Python環境


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即可

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM