gpt4 book ai didi

python setup_tools install_required

转载 作者:行者123 更新时间:2023-11-28 18:03:49 25 4
gpt4 key购买 nike

<分区>

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)

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com