[CENTOS] Change the default reference repository for pip install

As a reminder, I can't find any changes to the default repository. The setting is CentOS. I don't know Windows. .. ..

UPLOAD SETUP

$ > vim ~/.pypirc

Enter the following settings.

[distutils]
index-servers = pypi
                xxxx <=My repository
[xxxx] <=My repository
repository: http://xxxxxx <=Http is enough for closed environment
username: xxxx
password: xxxx

DOWNLOAD SETUP

$ > mkdir ~/.pip
$ > vim ~/.pip/pip.conf

Enter the following settings. If you do it as root, you can use sudo pip install. If you do it with user privileges, you can use it when installing Coder or VS Code.

[global]
index-url: YourURL
trusted-host: IP or domain

Setting trusted-host will eliminate http errors. After that, you can use pip install normally.

Recommended Posts

Change the default reference repository for pip install
Pip install the GitHub repository
Install the pip command
pip install Specify the github repository as the source
Prepare the development environment for Python on AWS Cloud9 (pip install & time change)
Install github repository with pip
Solution for pip install error [Python] [Mac]
Change the list in a for statement
Install by specifying the version with pip
I can't install the package with pip.
Pip install a private repository when building Docker
sudo pip install
[For beginners] Install the package in the Anaconda environment (Janome)
[Django] Change the Default IP address of the runserver command
I will install Arch Linux for the time being.
Make up for the lack of Maya Node reference
Install tweepy with pip and use it for API 1.1