Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

打开后导致pyhton 的pip失效,能不能吧pip加速也添加进去 #35

Closed
Flandre923 opened this issue Apr 12, 2021 · 6 comments
Closed
Labels
Enhancement New feature or request

Comments

@Flandre923
Copy link

打开后导致pyhton 的pip失效,能不能吧pip加速也添加进去

@winsphinx
Copy link

我也一直有这个问题,上个图

image

@greper greper added the Enhancement New feature or request label Apr 15, 2021
@winsphinx
Copy link

能不能加速倒在其次,怎么能先旁路?或是白名单?

@greper
Copy link
Contributor

greper commented Apr 16, 2021

两种方式:
1、可以把pac关掉
2、加白名单,#25

@Justin-Young
Copy link

Justin-Young commented May 13, 2021

使用http源加--trusted-host选项(注意,此法对https无效)
pip install --trusted-host pypi.douban.com -i http://pypi.douban.com/simple package_name
pip install --trusted-host mirrors.aliyun.com -i http://mirrors.aliyun.com/pypi/simple package_name

@xinghui233
Copy link

这个似乎是其实python的问题 我在用其他代理软件时也经常发生
因为这些代理软件都是通过设置系统代理实现的 所以默认的https代理是https://127.0.0.1
但其实系统自带的代理服务器只支持http 所以不管代理软件是直连还是规则 都会发生报错
目前我已知的能走代理的办法有
1.走http源
2.在系统里添加HTTPS_PROXY变量 值为http://yourproxy:port
3.使用pip install -–proxy yourproxy:port module
4.在powershell中使用$env:HTTPS_PROXY="http://yourproxy:port" 或 cmd中使用 set HTTPS_PROXY="http://yourproxy:port" 手动添加环境变量

这些实际操作起来都很麻烦 所以其实我一般都是暂时关闭系统代理的

@greper
Copy link
Contributor

greper commented Nov 22, 2021

1.7.0已支持

@greper greper closed this as completed Nov 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants