Recently wrote an article on "Microsoft Open source distributed high-performance GB Framework LIGHTGBM installation use," a small partner to install the Python environment encountered a problem. I personally try to install it, and I do have a lot of problems. One of the most critical is the use of PIP installation, "https://pypi.python.org/simple/scipy/" Access can not be installed. The recent use of Nodejs NPM is also encountered similar problems, the solution is to use the domestic mirror, and then open the look. Domestic Mirror
http://pypi.douban.com/simple/Watercress
http://mirrors.aliyun.com/pypi/simple/Ali
http://pypi.hustunique.com/simple/Huazhong University of Technology
http://pypi.sdutlinux.org/simple/Shandong University of Technology
http://pypi.mirrors.ustc.edu.cn/simple/China University of Science and Technology
Https://pypi.tuna.tsinghua.edu.cn/simple Tsinghua University
Because Nodejs I use is Ali's, so here I also choose Ali's. method of Use
1, temporary use, add "-I" or "--index" parameters
Pip Install-i Http://pypi.douban.com/simple/flask
2, the preparation of the default
Create a "pip" directory under your "C:\Users\ your username \" directory, and create "Pip.ini" files in the PIP directory ( Note: UTF-8 no BOM format );
Contents of the "Pip.ini" file:
[Global]
index-url=http://mirrors.aliyun.com/pypi/simple/
[Install]
trusted-host=mirrors.aliyun.com
Note: The Trusted-host option is necessary to avoid trouble, otherwise it will prompt untrusted use, or add "--trusted-host=mirrors.aliyun.com" option;
Note: There are Web page prompts to create or modify profiles (Linux files in ~/.pip/pip.conf,windows at%homepath%\pip\pip.ini), at least Windows7 under "%homepath%\pip\ Pip.ini "This directory is not working.
====================== Document Information ======================
Copyright Disclaimer: Non-commercial free reprint-keep the signature-indicate the source
Signature (by): testcs_dn (micro WX Laugh)
Article source: [Ignorant life, record bit] (HTTP://BLOG.CSDN.NET/TESTCS_DN)