Python虚拟环境Pipenv镜像加速配置
找到项目下的Pipfile文件
默认配置
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
flask = "*"
[dev-packages]
[requires]
python_version = "3.6"
这个url对应的镜像地址比较慢,这里使用阿里云的,速度比较快
配置阿里云镜像地址
[[source]]
url = "https://mirrors.aliyun.com/pypi/simple/"
verify_ssl = true
name = "pypi"
[packages]
flask = "*"
[dev-packages]
[requires]
python_version = "3.6"