Pypi问题:不允许存储或编辑包信息。我跟随this tutorial。
.pypirc
[distutils]
index-servers =
pypi
pypitest
[pypi]
respository: https://pypi.python.org/pypi
username: Redacted
password: Redacted
[pypitest]
respository: https://testpypi.python.org/pypi
username: Redacted
password: Redacted
setup.py
from setuptools import setup, find_packages
with open('README.rst') as f:
readme = f.read()
setup(
name = "quick",
version = "0.1",
packages = find_packages(),
install_requires = ['numba>=0.17.0',
'numpy>=1.9.1',],
url = 'https://github.com/David-OConnor/quick',
description = "Fast implementation of numerical functions using Numba",
long_description = readme,
license = "apache",
keywords = "fast, numba, numerical, optimized",
)
命令:
python setup.py register -r pypitest
错误:
Server response (403): You are not allowed to store 'quick' package information
我能够在pypi的测试网站上使用该表单成功注册,但是当我使用这个上传时:
python setup.py sdist upload -r pypitest
我得到了这个,类似的消息:
error: HTTP Error 403: You are not allowed to edit 'quick' package information
按照these instructions使用Twine和Wheel时,我收到相同的错误消息。这个问题在这里和其他地方出现过几次,并且已经通过在上传之前注册以及通过电子邮件验证PyPi帐户来解决。我遇到了其他事情。
答案 0 :(得分:10)
从这个列表中可以看到PyPi上的所有包:
https://pypi.python.org/simple/
快速就在那里。问题作者说他/她不能创建快速包,所以他/她不是PyPi上的包作者,而其他人之前创建了一个具有相同名称的包。