我正在尝试构建一个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='[email protected]',
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')
尝试将其更改为djangorestframework>=3.6.3
。