我试图在我的Windows计算机上安装Django,但我无法安装它.我被要求设置环境,但我是新手,我以前从未使用过Python或Django,我甚至不知道Django的用途是什么.到目前为止,我已经安装了Python34.我已经设置了环境变量.我已经安装了pip.我跑的时候
C:\Users\username>pip install Django==1.6.5
Downloading/unpacking Django==1.6.5
Cannot fetch index base URL https://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement Django==1.6.5
Cleaning up...
No distributions at all found for Django==1.6.5
Storing debug log for failure in C:\Users\username\pip\pip.log
Run Code Online (Sandbox Code Playgroud)
这有什么不对?我已经按照本指南去一步一步在这里.安装Django之前我需要什么?运行此命令之前是否需要任何服务器或数据库?
有人可以帮忙吗?
这是一个点子连接问题.如果您使用的是Proxy,则应通过代理连接.首先,使用此命令检查是否已连接到代理服务器.
C:\>netsh winhttp show proxy
Run Code Online (Sandbox Code Playgroud)
如果给出了这个结果.
Current WinHTTP proxy settings:
Direct access (no proxy server).
Run Code Online (Sandbox Code Playgroud)
那么这意味着您尚未连接到代理服务器.请使用以下命令设置代理.
set http_proxy=http://username:password@proxyserver:proxyport
set https_proxy=https://username:password@proxyserver:proxyport
Run Code Online (Sandbox Code Playgroud)
有关详细信息,请查看此链接.
| 归档时间: |
|
| 查看次数: |
7921 次 |
| 最近记录: |