pipenv 切换国内源

可选的源

阿里云:http://mirrors.aliyun.com/pypi/simple/
豆瓣:http://pypi.douban.com/simple/
清华大学:https://pypi.tuna.tsinghua.edu.cn/simple/
中国科学技术大学:https://pypi.mirrors.ustc.edu.cn/simple/


参考:https://blog.csdn.net/jpch89/article/details/81952416

修改方式

  1. 首先 cd 进虚拟目录
    pipenv 切换国内源 - 图1
    image.png
  2. 修改名字为 “Pipfile” 的文件的 URL 字段
    [[source]]
    url = “https://pypi.org/simple“ #修改这里
    verify_ssl = true
    name = “pypi”
    [packages]
    flask = “
    requests = “

    wtforms = “
    flask-sqlalchemy = “

    cymysql = “
    flask-login = “

    [dev-packages]
    [requires]
    python_version = “3.7”

https://www.jianshu.com/p/2170b2916496