我正在尝试在Windows 10 PC上安装Django 1.8.11,但是在运行pip install django==1.8.11
时出现此错误:
在被'ConnectTimeoutError(
)断开的连接断开后,重试(Retry(total = 0,connect = None,read = None,redirect = None)), '与xxxx.xxxx.xxx.xx的连接超时。(连接超时= 15)')':/ simple / pip /
({xxxx.xxxx.xxx.xx
是我有时用作代理的地址)
我有Python版本:3.5.4
和pip版本:9.0.1
我已经用netsh winhttp show proxy
检查了代理设置
当前WinHTTP代理设置:
直接访问(无代理服务器)。
我没有任何公司代理人 我的系统代理设置是
自动检测设置->开启
使用设置脚本->关闭
使用代理服务器->关闭
还尝试了ping pypi.python.org
151.101.4.223的Ping统计信息: 数据包:已发送= 4,已接收= 4,丢失= 0(丢失0%), 大约往返时间(以毫秒为单位): 最小值= 92毫秒,最大值= 102毫秒,平均值= 95毫秒
因此,我可以访问互联网
我也删除了临时文件,尝试了python -m pip --proxy="" install django==1.8.11
,在注册表中搜索了数据或值xxxx.xxxx.xxx.xx
,结果相同...
如果有人知道xxxx.xxxx.xxx.xx
的配置在哪里,以便我可以删除它,则不知道该怎么做。
答案 0 :(得分:1)
查看当前的环境变量,尝试查找任何代理设置:
#include <iostream>
#include <cmath>
using namespace std;
const double GRAVITY_MPS = 9.8;
const double METERS = 3.28084;
int main() {
double v = 0.0, degrees = 0.0;
cout << "Enter the velocity (mi/hr) and cannon angle (degrees): \n";
cin >> v >> degrees;
double v2 = 0.0;
v2 = v * 5280.0 / 3600.0;
double radians = degrees * M_PI / 180.0;
double r = (pow(v2,2.0) / GRAVITY_MPS) * sin((2.0 * radians));
double r2 = r * METERS;
cout << "Yikes travels " << r2 << " feet.";
return 0;
}
如果找到任何内容,请取消设置变量。
列出配置文件中的设置:
set | find "proxy"
如果找到任何内容,请使用pip config list | find "proxy"
或pip config unset
取消设置变量。在https://pip.pypa.io/en/stable/reference/pip_config/上查看pip config edit
的文档
答案 1 :(得分:-1)
尝试安装最新版本pip install Django