亚洲视频二区_亚洲欧洲日本天天堂在线观看_日韩一区二区在线观看_中文字幕不卡一区

公告:魔扣目錄網(wǎng)為廣大站長提供免費收錄網(wǎng)站服務,提交前請做好本站友鏈:【 網(wǎng)站目錄:http://www.430618.com 】, 免友鏈快審服務(50元/站),

點擊這里在線咨詢客服
新站提交
  • 網(wǎng)站:51998
  • 待審:31
  • 小程序:12
  • 文章:1030137
  • 會員:747

pip config 主要包含以下子命令:set、get、edit、list、debug、unset。下面我們逐一介紹下它們。

pip config set

這個命令允許我們以name=value的形式配置某些項,比如設置鏡像源:

pip config set global.index-url https://mirrors.cloud.tencent.com/pypi/simple

pip config get

這個命令允許我們查看某個配置項的值,比如查看鏡像源配置:

pip config get global.index-url

pip config edit

這個命令允許我們用一個編輯器打開配置文件進行編輯,如果我們沒有指定--editor選項,就會用VISUAL或者EDITOR環(huán)境變量的值作為編輯器,如下命令:

pip config --editor=vi edit

pip config list

這個命令以name=value的形式輸出當前配置,假如我們已經(jīng)執(zhí)行了上面的pip config set命令,這時再執(zhí)行 pip config list就會輸出如下:

global.index-url='https://mirrors.cloud.tencent.com/pypi/simple'

pip config debug

這個命令列出各個配置文件位置及其內(nèi)容,在我系統(tǒng)上執(zhí)行pip config debug后輸出如下:

env_var:
env:
global:
  /etc/xdg/pip/pip.conf, exists: False
  /etc/pip.conf, exists: False
site:
  /usr/pip.conf, exists: False
user:
  /home/xxx/.pip/pip.conf, exists: False
  /home/xxx/.config/pip/pip.conf, exists: True
    global.index-url: https://mirrors.cloud.tencent.com/pypi/simple
    global.hello: world

pip config unset

這個命令允許我們刪除一個配置,比如下面命令刪除了鏡像的配置:

pip config unset global.index-url

掌握了上述6個命令,你就學會了config的使用了,是不是很簡單,歡迎評論交流!

分享到:
標簽:pip config
用戶無頭像

網(wǎng)友整理

注冊時間:

網(wǎng)站:5 個   小程序:0 個  文章:12 篇

  • 51998

    網(wǎng)站

  • 12

    小程序

  • 1030137

    文章

  • 747

    會員

趕快注冊賬號,推廣您的網(wǎng)站吧!
最新入駐小程序

數(shù)獨大挑戰(zhàn)2018-06-03

數(shù)獨一種數(shù)學游戲,玩家需要根據(jù)9

答題星2018-06-03

您可以通過答題星輕松地創(chuàng)建試卷

全階人生考試2018-06-03

各種考試題,題庫,初中,高中,大學四六

運動步數(shù)有氧達人2018-06-03

記錄運動步數(shù),積累氧氣值。還可偷

每日養(yǎng)生app2018-06-03

每日養(yǎng)生,天天健康

體育訓練成績評定2018-06-03

通用課目體育訓練成績評定