我正在尝试构建一个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')的分布
答案 0 :(得分:3)
尝试将其更改为djangorestframework>=3.6.3
。