Python pip domestic Mirror Encyclopedia and use method __python

Source: Internet
Author: User
Tags aliyun

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.