使用 pip 安装 pipenv  pip install pipenv 

抛出错误异常  连接超时 time out

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

解决方案  更换国内资源

操作:

在C:\Users\Administrator\下新建pip文件夹,在创建pip.ini文件,拷贝下面代码进去,保存

切换下载源地址为

[global]

index-url = https://pypi.tuna.tsinghua.edu.cn/simple

 

 

pipenv 其他指令

pipenv shell 进入虚拟环境
exit 退出
pipenv install flask  安装flask

pipenv uninstall flask 卸载flask

pipenv graph 查看包关联关系

 

pycharm 设置更换环境为虚拟环境

  file ->  settings -> project项目 -> product interpreter ->

  cmd 进入python的虚拟环境 pipenv --venv -> existing environment

  按照显示地址找到 scripts->python.sex 选择并确认

 

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄