【问题标题】:pip package gets error at installing aiohttppip 包在安装 aiohttp 时出错
【发布时间】: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


【解决方案1】:

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

【讨论】:

  • Python 3.9.7 pip 21.1.2
  • 尝试在 ide 终端或命令提示符下使用此代码(先激活环境) pip install rasa-x --extra-index-url pypi.rasa.com/simple
  • 那是什么?请解释
  • 它从 rasa 安装 aiohttp
  • 所以我必须把它放在这样的要求中? ["rasa-x --extra-index-url pypi.rasa.com/simple", "urllib3"]
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2019-03-05
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-01-18
  • 2022-01-21
  • 1970-01-01
相关资源
最近更新 更多