Python uses domestic source installation software

Source: Internet
Author: User
Tags aliyun

Python Linux and other use of domestic source installation software faster you deserve to have!

Watercress Source: https://pypi.douban.com/simple/

Ali: http://mirrors.aliyun.com/pypi/simple/

Tsinghua Source: https://pypi.tuna.tsinghua.edu.cn/simple/

Huazhong University of Technology Source: http://pypi.hustunique.com/simple/
Shandong University of Technology source : http://pypi.sdutlinux.org/simple/
China University of Science and Technology source : http://pypi.mirrors.ustc.edu.cn/simple/

1. Install software (package) using PIP: Specify Source

Pip install-i source software (or package)

For example: pip install-i https://pypi.douban.com/simple pymysql

2, once and for all the practice:

    • under Linux,

Modify the ~/.pip/pip.conf (without creating one), modify the Index-url to tuna as follows:

[Global]
Index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[Install]
    • windows under

Create a "pip" directory under your "C:\Users\ your username \" directory,

Create a "Pip.ini" file under the "Pip" Directory (note: Encoded in UTF-8 no BOM format);
"Pip.ini" File contents:

[global]index-url = https://pypi.tuna.tsinghua.edu.cn/simple[install]trusted
Note: The Trusted-host option is necessary in order to avoid trouble, otherwise the use of the prompt is not trusted,
or add "--trusted-host=mirrors.aliyun.com" option;

Note: A Web page prompts you to create or modify a configuration file
(Linux files in ~/.pip/pip.conf,windows in%homepath%\pip\pip.ini),
At least Windows7 "%homepath%\pip\pip.ini" This directory is not working.
    • Pycharm specifying a third-party source

Click File---> Setting ---> Project interpeter,

Click the button on the right to pop up the package management interface,

Select the Manage Repositories button below,

Add the image above to

The source address can be followed by a "/" or No "/":

Https://pypi.tuna.tsinghua.edu.cn/simple

https://pypi.tuna.tsinghua.edu.cn/simple/

Python uses domestic source installation software

Related Article

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.