Question

I am trying to install Django on my windows computer, but I am unable to install it. I have been asked to setup the environment, but I am new to this, I have never used Python or Django before, I don't even know what is the use of Django properly. So far I have install Python34. I have setup the environment variables. I have installed pip. When I run

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

What's wrong here? I have gone step by step according to this guide here. What do I need before installing Django? Do I need to have any server or database before running this command?

Can anyone help?

Was it helpful?

Solution

It's a pip connection problem. If you are using Proxy it should be connected via proxy. First of all check if you have been connected to your proxy server using this command.

C:\>netsh winhttp show proxy

If is gives this result.

Current WinHTTP proxy settings:
    Direct access (no proxy server).

Then it means that you haven't been connected to proxy server. Please set the proxy using the commands below.

set http_proxy=http://username:password@proxyserver:proxyport
set https_proxy=https://username:password@proxyserver:proxyport

For more info, checkout this link.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top