<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[关于PyPI私服的配置和使用]]></title><description><![CDATA[<h2>私服配置</h2>
<p dir="auto">(可选)创建一个<code>Blob Stores</code>,供仓库使用<br />
选择pypi类型的local,proxy,group各配置一个,(group可配置多个)<br />
local中修改部署策略为: <code>Allow redeploy</code><br />
proxy中设置镜像源,推荐<code>https://pypi.tuna.tsinghua.edu.cn/simple</code><br />
group中将local和proxy仓库添加为成员</p>
<h2>上传私有包</h2>
<p dir="auto">首先修改配置:</p>
<p dir="auto"><code>vim ~/.pypirc</code></p>
<pre><code class="language-ini">[distutils]
index-servers=local

[local]
repository: https://repository.genostack.com/repository/pypi-local/
username: 个人私服账号
password: 个人私服密码
</code></pre>
<p dir="auto">打包上传:<br />
<code>python setup.py sdist upload -r local</code></p>
<h2>下载</h2>
<p dir="auto"><code>vim ~/.config/pip/pip.conf</code></p>
<pre><code class="language-int">[global]
index-url=https://pypi.tuna.tsinghua.edu.cn/simple
extra-index-url=https://repository.genostack.com/repository/pypi-group/simple
</code></pre>
<p dir="auto">可以通过命令直接配置</p>
<pre><code class="language-shell">pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
pip config set global.extra-index-url https://repository.genostack.com/repository/pypi-group/simple
</code></pre>
]]></description><link>http://an.forum.genostack.com/topic/931/关于pypi私服的配置和使用</link><generator>RSS for Node</generator><lastBuildDate>Sat, 13 Jun 2026 14:28:26 GMT</lastBuildDate><atom:link href="http://an.forum.genostack.com/topic/931.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 28 Jun 2023 03:21:46 GMT</pubDate><ttl>60</ttl></channel></rss>