python - pip 包在安装 aiohttp 时出错
问题描述
我制作了自己的 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.5 才能使用aiohttp
推荐阅读
- java - 我正在尝试根据 rtAudienceScore 显示前 k 个热门电影,其中 k 是用户为查找前 k 个电影而设置的限制
- python - 删除 csv 文件中的特定行
- css - nth-child box-shadow
- c - 如何通过将标记粘贴在一起来创建类似函数的宏标记
- python - Python 3.7.0 c.execute(v_sql,[Part_no, Rev_no]) 无法识别我的变量
- dsl - 使用“==”和“包含”使用通用脚本进行空手道比赛的最佳方法
- java - 如何在 PDF 中正确显示 Jasper 报告导出的越南语?
- c# - 将派生类型的集合作为基类型的集合访问
- regex - 重复的任意捕获组
- excel - 工作表中多个数据范围的第一行和最后一行/第一列和最后一列