文章列表Python包管理setupOn this pagesetup使用指定源以下多种方式均可尝试,均不一定有效方法1修改文件 ~/.pydistutils.cfg为:[easy_install]index_url = https://pypi.tuna.tsinghua.edu.cn/simple方法2:直接在setup.py的同目录放置一个setup.cfg:[easy_install]index_url = https://pypi.tuna.tsinghua.edu.cn/simple