首页 > 解决方案 > 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
)

标签: pythonpython-3.xpippypi

解决方案


你有哪个版本的python。你需要Python >= 3.5 才能使用aiohttp


推荐阅读