pipenv环境配置
- git clone 项目
- cd python项目目录
- pipenv install
执行此命令后,会生成虚拟环境Virtualenv location - 进入PyCharm,配置虚拟环境
PyCharm->Preferences->Project Interpreter->点击右侧设置Add Python Interpreter->选择Existing environment->Interpreter选择刚刚创建的路径->点击OK
- PyCharm安装第三方库
PyCharm->Preferences->Project Interpreter->点击+->可搜索可选择需要的库
pipenv命令
- pipenv install 安装
- pipenv shell 进入环境
- pypenv install 库 安装第三方库
- exit 退出
网友评论