简体   繁体   中英

While installing package from PIP it using private repo/server

While I'm installing packages with pip it installing it from my private instead of public/official repo... How to fix it?

Edit:

(test)  mymac@pc137  ~/workspace  pip install pacman

Collecting pacman

User for devpi.packageserver.com:

It seems that devpi has been used by pip... How to switch off devpi? I don't want to use it while installing packages with pip...

The additional server usage can be persisted in the configuration file pip.conf (or pip.ini on Windows). Since you stated you're on MacOS, it seems you have found the correct location (according to the official docs ):

The names and locations of the configuration files vary slightly across platforms. You may have per-user, per-virtualenv or site-wide (shared amongst all users) configuration:

Per-user:

...

On macOS the configuration file is $HOME/Library/Application Support/pip/pip.conf if directory $HOME/Library/Application Support/pip exists else $HOME/.config/pip/pip.conf .

There are also a legacy per-user configuration file which is also respected, these are located at:

On Unix and macOS the configuration file is: $HOME/.pip/pip.conf

Find the config file, open it with an editor and comment out (or remove) lines setting the index-url / extra-index-url options.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM