看到这个东西之后,我不得不感叹技术的进步。这个东东是 pip 与 virtualenv 的结合体。对 requirements.txt 进行了很大的优化。比 pip 好用很多。
参考:
https://pengshp.github.io/post/pipenv-guide/
https://cuiqingcai.com/5846.html
安装:
pip3 install pipenv
进入虚拟环境:
pipenv shell
安装第三方库:
pipenv install xxx
查看虚拟环境路径:
pipenv --venv
官方文档地址:https://docs.pipenv.org/