pip3 install bandersnatch

基于python3环境使用bandersnatch搭建本地pypi源https://pypi.org/project/bandersnatch/#files 查询最新版本
wget https://files.pythonhosted.org/packages/83/2c/6dc7548ccee31153e34298eab6216096819afe49c791d5c3a9cefb42b617/bandersnatch-3.6.0.tar.gz

tar xf bandersnatch-3.6.0.tar.gz
cd bandersnatch-3.6.0
python3 setup.py install
# 生成配置文件
bandersnatch mirror

# 修改配置文件
vim /etc/bandersnatch.conf
directory = /srv/pypi  # 修改本地存储位置
master = 基于python3环境使用bandersnatch搭建本地pypi源https://pypi.python.org # 修改远程源地址

# 执行同步
bandersnatch -c /etc/bandersnatch.conf mirror
#最后拿nginx 映射出来就好了 超级easy

相关文章:

  • 2021-07-02
  • 2022-12-23
  • 2021-07-17
  • 2022-02-09
  • 2021-12-04
  • 2021-08-29
  • 2021-10-31
  • 2021-12-09
猜你喜欢
  • 2022-02-23
  • 2021-10-09
  • 2021-10-26
  • 2022-12-23
  • 2021-11-23
  • 2022-12-23
  • 2021-12-09
相关资源
相似解决方案