直接在setup.py的同目录放置一个setup.cfg: 加上 [easy_install] index_url = https://mirrors.aliyun.com/pypi/simple/ 我这里是阿里源,具体是个人情况选择pip源