[英]How to update Python Package on PyPi?
I created a package in Python named wiki-scraper but while installing from PyPi I am getting the following error.我在 Python 中创建了一个名为 wiki-scraper 的包,但是在从 PyPi 安装时出现以下错误。
Collecting wiki-scraper
Using cached wiki_scraper-0.1.0-py3-none-any.whl (2.4 kB)
Requirement already satisfied: bs4 in c:\users\rigve\anaconda3\lib\site-packages (from wiki-scraper) (0.0.1)
ERROR: Could not find a version that satisfies the requirement re (from wiki-scraper)
ERROR: No matching distribution found for re
The contents of the equirements.txt is: equirements.txt 的内容是:
re
nltk
bs4
requests
I rectified the error by removing re
from requirements.txt but I don't know how to update my package on PyPI.我通过从 requirements.txt 中删除
re
纠正了错误,但我不知道如何在 PyPI 上更新我的包。 I have seen many methods but they are way too long also I don't know how to delete the existing version on PyPI.我见过很多方法,但它们太长了,我也不知道如何删除 PyPI 上的现有版本。 How can I update my package on PyPI?
如何在 PyPI 上更新我的包?
The error is simply stating that pip
cannot find a package re
, which was required.该错误只是说明
pip
找不到所需的包re
。
The reason is simple: there is no package named 're' on PyPI原因很简单: PyPI 上没有名为“re”的包
re
is a standard Python module. re
是一个标准的 Python 模块。 So there is no reason to install it using pip
, and attempting to do so will result in this error.所以没有理由使用
pip
安装它,尝试这样做会导致这个错误。
NB: I don't have experience with creating packages on PyPI, but I expect that you should simply create a new version (with a different version number) and upload that.注意:我没有在 PyPI 上创建包的经验,但我希望您应该简单地创建一个新版本(具有不同的版本号)并上传。 It probably isn't possible to update your current version.
可能无法更新您当前的版本。 See Update a PyPI package for more info about that.
有关更多信息,请参阅更新 PyPI 包。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.