发布时间:2019-07-12 10:06:39编辑:auto阅读(1903)
环境:服务器 Ubuntu16.04,客户端 Ubuntu18.04,Python3环境
sudo pip install pypiserver
mkdir ~/packages
sudo pip install passlib
sudo apt install apache2-utils -y
htpasswd -sc ~/packages/.passwd.txt username
vim ~/.pypirc
[distutils]
index-servers =
local
[local]
repository: http://192.168.0.2:9898
username: username
password: passwd
python setup.py sdist upload -r local
pip install -i http://192.168.0.2:9898/ packagename --trusted-host 192.168.0.2
上一篇: week02_python内置数据结构_
下一篇: zabbix微信告警python脚本
47481
45782
36781
34305
28952
25587
24432
19603
19092
17624
5455°
6038°
5554°
5629°
6555°
5367°
5367°
5873°
5847°
7160°