最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

搭建pypi私有倉(cāng)庫(kù)實(shí)現(xiàn)過程詳解

 更新時(shí)間:2020年11月25日 10:28:48   作者:-零  
這篇文章主要介紹了搭建pypi私有倉(cāng)庫(kù)實(shí)現(xiàn)過程詳解,文中通過示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友可以參考下

1. 安裝依賴

pip install pypiserver passlib

2. 創(chuàng)建packages目錄

mkdir packages

3. 以無認(rèn)證方式啟動(dòng)pypiserver

pypi-server -p 8080 -P . -a . ./packages

4. 編寫.pypirc配置文件

[distutils]
index-servers =
pypi
local

[pypi]
username:xxx
password:xxxx

[local]
repository:http://localhost:8080
username:
password:

5. 上傳到私有pypi服務(wù)

使用setuptools上傳

python setup.py sdist bdist_wheel upload -r local

使用twine上傳

twine upload -r local dist/*

安裝

首先修改.pip.ini配置文件如下:

[global]
index-url=https://pypi.douban.com/simple
extra-index-url=
http://localhost:8080/simple/
https://mirrors.aliyun.com/pypi/simple/
https://mirrors.cloud.tencent.com/pypi/simple
https://pypi.tuna.tsinghua.edu.cn/simple/
https://pypi.doubanio.com/simple/
https://mirrors.163.com/pypi/simple/

[install]
trusted-host=
localhost:8080
pypi.douban.com
mirrors.aliyun.com
mirrors.cloud.tencent.com
pypi.tuna.tsinghua.edu.cn
pypi.doubanio.com
mirrors.163.com

安裝

pip install [package-name]

以上就是本文的全部?jī)?nèi)容,希望對(duì)大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。

相關(guān)文章

最新評(píng)論

阆中市| 瓦房店市| 武夷山市| 隆德县| 正镶白旗| 焦作市| 凤冈县| 宜章县| 东海县| 黄龙县| 宜川县| 永宁县| 翼城县| 邯郸县| 铜陵市| 黔江区| 高密市| 全椒县| 泗阳县| 印江| 汉沽区| 鹤庆县| 濮阳市| 望城县| 准格尔旗| 大埔区| 乌拉特后旗| 襄垣县| 武功县| 根河市| 文昌市| 漾濞| 亳州市| 新巴尔虎右旗| 吉木萨尔县| 武川县| 交城县| 临江市| 九龙县| 杨浦区| 古交市|