【问题标题】:Error: Could not find suitable distribution for Requirement.parse('rest_framework>=3.6.3')错误:找不到 Requirement.parse('rest_framework>=3.6.3') 的合适分布
【发布时间】:2019-02-14 15:42:11
【问题描述】:

我正在尝试构建一个 python 包,下面是我的 setup.py

setup(
    name='django-sso_consumer',
    version='0.1',
    packages=find_packages(),
    include_package_data=True,
    license='BSD License',  # example license
    description='A simple Django app for sso_consumenr and hooks',
    long_description=README,
    url='https://www.example.com/',
    author='Paksign',
    author_email='shoaib@wukla.com',
    classifiers=[
        'Environment :: Web Environment',
        'Framework :: Django',
        'Framework :: Django :: 1.5',  # replace "X.Y" as appropriate
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',  # example license
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
        'Topic :: Internet :: WWW/HTTP',
        'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
    ],
    install_requires=[
        'wukla_utils',
        'rest_framework>=3.6.3',
        'django>=1.11.3'
    ]
)

但在运行sudo python setup.py develop 时,我无法安装它并产生以下错误:

阅读https://pypi.org/simple/ 没有本地包或工作下载 为 rest_framework>=3.6.3 错误找到的链接:找不到合适的链接 Requirement.parse('rest_framework>=3.6.3')

的分布

【问题讨论】:

    标签: python django pip pypi


    【解决方案1】:

    尝试将其更改为djangorestframework>=3.6.3

    【讨论】:

      猜你喜欢
      • 2018-11-14
      • 2020-05-13
      • 2019-09-15
      • 2017-07-09
      • 1970-01-01
      • 2021-10-23
      • 2023-04-02
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多