pip3 install bandersnatch
#
https://pypi.org/project/bandersnatch/#files 查詢最新版本
# 生成配置文件
bandersnatch mirror
# 修改配置文件
vim /etc/bandersnatch.conf
directory = /srv/pypi # 修改本地存儲位置
master =
https://pypi.python.org # 修改遠程源地址
# 執行同步
bandersnatch -c /etc/bandersnatch.conf mirror
#

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 =

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