基于python3环境使用bandersnatch搭建本地pypi源
2024-09-03 11:02:00
pip3 install bandersnatch
# 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..tar.gz
cd bandersnatch-3.6.
python3 setup.py install
# 生成配置文件
bandersnatch mirror
# 修改配置文件
vim /etc/bandersnatch.conf
directory = /srv/pypi # 修改本地存储位置
master = https://pypi.python.org # 修改远程源地址
# 执行同步
bandersnatch -c /etc/bandersnatch.conf mirror
#最后拿nginx 映射出来就好了 超级easy
最新文章
- asp.net mvc adminlte第一波
- 14073102(CCDIKRecoil)
- 将word文件快速转换成表格的技巧
- C# XmlSerializer实现序列化浅析
- Qt配置信息设置(QSettings在不同平台下的使用路径)
- 集成骨骼动画Spine的几点经验
- 闭包 this,arguemnts 问题
- vim 模式基础操作
- python将PNG格式的图片转化成为jpg
- Nginx不支持Post数据中带有";.";
- Span<;T>;和ValueTuple<;T>;性能是.Net Core非常关键的特性
- gpu内存查看命令nvidia-smi
- 【内核】探究linux内核,超详细解析子系统
- 获取作为 URL 部署清单的位置。
- Design Pattern in Simple Examples
- win10安装.net3.5 报错解决
- oracle 表空间tablespace
- java(IO)读写文件乱码转换UTF-8问题
- Python 绘制棋盘
- Ubuntu 16.04 关闭/打开笔记本触摸板