pycharm pip安装模块失败

pip install pygame
Looking in indexes: https://pypi.doubanio.com/simple/
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', PermissionError(13, 'Permission denied'))': /simple/pygame/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', PermissionError(13, 'Permission denied'))': /simple/pygame/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', PermissionError(13, 'Permission denied'))': /simple/pygame/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', PermissionError(13, 'Permission denied'))': /simple/pygame/

以上错误原因有不是以管理员身份运行

解决,右键程序,选择以管理员身份运行即可

或者使用  pip install 模块名 -i    某个源链接(比如阿里源,清华源,等等都可以)--trusted-host 后面你的源 的host (域名)

比如pip install robotframework -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com

即可

你可能感兴趣的:(python)