1、安装pypi-server

pip install pypi-server

pypi-server本地服务的使用

 

2、启动pypi-server服务

pypi-server -p 9090 指定包的路径

如,pypi-server -p 9090 /root/packages/

pypi-server本地服务的使用

 

3、检查是否服务是否启动

lsof -i:9090

如下为启动成功!

pypi-server本地服务的使用

4、安装自定义的包

pip install --extra-index-url http://192.168.5.129:9090/ bwjf-scrapy-redis --trusted-host 192.168.5.129

在windows上安装

pypi-server本地服务的使用

 

5、扩展:如何打包发布

python的打包与发布:https://blog.csdn.net/weixin_39128119/article/details/82218076

相关文章:

  • 2021-12-20
  • 2021-12-06
  • 2022-12-23
  • 2022-01-08
  • 2021-11-09
  • 2021-12-12
  • 2022-12-23
猜你喜欢
  • 2022-01-02
  • 2022-12-23
  • 2022-12-23
  • 2021-06-22
  • 2021-10-26
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案