pip not installing modules

后端 未结 3 1008
时光说笑
时光说笑 2020-12-13 21:44

As per object. I\'m running Python 2.7.10 under Windows 7 64 bit. I added C:\\Python27\\Scripts to my PATH, and I can run pip, but it\'s not able to install mod

相关标签:
3条回答
  • 2020-12-13 22:19

    Proxy shall be used. For example:

    python.exe -m pip install numpy --proxy="proxy.com:8080"
    

    where "proxy.com:8080" is proxy server address and port. This can be found in OS settings.

    How to get them:

    1. Windows: What Is a Proxy or Proxy Server
    2. Linux How can I find out the proxy address I am behind?
    3. OSX: How can I get Mac OS X's proxy information in a Bash script?
    0 讨论(0)
  • 2020-12-13 22:32

    To bypass the firewall you can use proxy

    pip install numpy --proxy <domain\user:password@proxyaddress:port>
    

    eg.,

    pip install numpy --proxy http://<username>:<password>@proxy.xyz.com:2180
    
    0 讨论(0)
  • 2020-12-13 22:33

    Do you by any chance use Anaconda?

    I was hitting my head against the wall for hours trying to install Django using cmd, and it just was not working! I opened up the Anaconda Prompt, ran the usual

    py -m pip install Django
    

    command, and hey presto! Django installed!!

    0 讨论(0)
提交回复
热议问题