作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
<分区>
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="mylidar",
version="0.1",
author="xxxxxxxxxx",
author_email="xxxxxxxxxx",
description="xxxxxxxxxxxxxxxxxxxxxxxxxx",
long_description=long_description,
long_description_content_type="text/markdown",
url="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
packages=["xxxxxxxxxxx"],
install_requires=[
'pyserial',
],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
)
我想将我的包发布到 https://test.pypi.org .我用命令
python setup.py sdist bdist_wheel
python -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
我成功地将我的项目上传到 pypi 中,但是当我使用 pip 安装它时出现错误
>>pip install -i https://test.pypi.org/simple/ mylidar
Looking in indexes: https://test.pypi.org/simple/
Collecting lidar
Downloading https://test-files.pythonhosted.org/packages/fb/f0/c7b2e9002550d775625f789e4917969a58b9a8c0495c18500fed8545e321/lidar-0.1-py3-none-any.whl
Collecting pyserial (from lidar)
Could not find a version that satisfies the requirement pyserial (from lidar) (from versions: )
No matching distribution found for pyserial (from lidar)
这个问题在这里已经有了答案: Pip install from pypi works, but from testpypi fails (cannot find requirements) (2 个
我正在尝试诊断此错误: Getting distribution for 'zc.buildout<2dev'. Got zc.buildout 1.7.1. Generated script '/o
我正在将一些旧产品更新到 4.x 代码库。 这是旧的 Install.py 中的常见模式: def install(self): out=StringIO() # Install CS
我是一名优秀的程序员,十分优秀!