打算通过python3 setup.py install 安装第三方包mitmproxy,结果各种下载包失败,源找不到包版本之类,
跌跌撞撞,根据提示,用清华源下载各版本包:
512 pip3 --default-timeout=100 install ruamel.yaml==0.16
513 pip3 --default-timeout=100 install ruamel.yaml==0.16
514 pip3 --default-timeout=100 install ruamel.yaml==0.16 -i http://pypi.douban.com/simple/
515 pip3 --default-timeout=100 install ruamel.yaml==0.16 -i https://pypi.tuna.tsinghua.edu.cn/simple
516 pip3 --default-timeout=100 install pyperclip=1.6.0 -i https://pypi.tuna.tsinghua.edu.cn/simple
517 pip3 --default-timeout=100 install pyperclip==1.6.0 -i https://pypi.tuna.tsinghua.edu.cn/simple
518 pip3 --default-timeout=100 install pyparsing==2.4.2 -i https://pypi.tuna.tsinghua.edu.cn/simple
519 pip3 --default-timeout=100 install pyOpenSSL==19.0.0 -i https://pypi.tuna.tsinghua.edu.cn/simple
520 pip3 --default-timeout=100 install protobuf==3.6.0 -i https://pypi.tuna.tsinghua.edu.cn/simple
521 pip3 --default-timeout=100 install passlib==1.6.5 -i https://pypi.tuna.tsinghua.edu.cn/simple
522 pip3 --default-timeout=100 install ldap3==2.6.1 -i https://pypi.tuna.tsinghua.edu.cn/simple
523 pip3 --default-timeout=100 install kaitaistruct==0.7 -i https://pypi.tuna.tsinghua.edu.cn/simple
524 pip3 --default-timeout=100 install hyperframe==5.1.0 -i https://pypi.tuna.tsinghua.edu.cn/simple
525 pip3 --default-timeout=100 install h2==3.2.0 -i https://pypi.tuna.tsinghua.edu.cn/simple
526 pip3 --default-timeout=100 install cryptography==2.1.4 -i https://pypi.tuna.tsinghua.edu.cn/simple
527 pip3 --default-timeout=100 install Brotli==1.0 -i https://pypi.tuna.tsinghua.edu.cn/simple
528 pip3 --default-timeout=100 install Brotli==1.0.1 -i https://pypi.tuna.tsinghua.edu.cn/simple
529 pip3 --default-timeout=100 install blinker==1.4 -i https://pypi.tuna.tsinghua.edu.cn/simple
530 pip3 --default-timeout=100 install cryptography==2.3 -i https://pypi.tuna.tsinghua.edu.cn/simple
直接换源:
setup.cfg
[easy_install]
index_url = https://pypi.tuna.tsinghua.edu.cn/simple