【发布时间】:2021-12-19 15:59:39
【问题描述】:
我自己制作了一个 pip 包,安装时出现此错误。
urllib3 工作正常,但 aiohttp 引发此错误
ERROR: Could not find a version that satisfies the requirement aiohttp (from web-math) (from versions: none)
ERROR: No matching distribution found for aiohttp
这是我的 setup.py 文件:
from setuptools import setup, find_packages
requirements = ["aiohttp", "urllib3"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Education",
"Operating System :: OS Independent",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
]
setup(
name="web_math",
version="1.0.11",
description="For online math api",
long_description=open("README.md").read(),
long_description_content_type='text/markdown',
url="https://github.com/mcbabo/webmath",
author="Moritz",
license="MIT",
classifiers=classifiers,
keywords="discord discord-calc calculator easy-calc simple-calculator discord.py pycord python math",
packages=find_packages(),
install_requires=requirements,
include_package_data=True
)
【问题讨论】:
-
你安装了哪个版本的python?。你需要 Python >= 3.7。也尝试更新 pip
-
Python 3.9.7 pip 21.1.2
标签: python python-3.x pip pypi