我正在尝试安装软件包Setuptools Wheels Twine,以便在Pypi中发布我的软件包,但是在安装安装程序包时会出现此错误。我使用Windows 10作为我的操作系统和VS代码。
C:\Users\Farhan Hasant\moshpdf>pip install setuptools wheels twinese
Collecting setuptools
Using cached https://files.pythonhosted.org/packages/d1/6a/4b2fcefd2ea0868810e92d519dacac1ddc64a2e53ba9e3422c3b62b378a6/setuptools-40.8.0-py2.py3-none-any.whl
Collecting wheels
Could not find a version that satisfies the requirement wheels (from versions: )
No matching distribution found for wheels
正确的代码是:
pip install setuptools wheel twine
您无需安装轮子即可将包分发到PyPI。你必须提供以下命令 -
python setup.py bdist_wheel
python setup.py sdist
twine upload dist/*
第一个命令将生成.whl包。第二个命令将生成一个.tar.gz包(一个支持旧版Python的好习惯),第三个命令是将模块上传到PyPI的twine命令