我试图用pip安装django dbsettings,但它会导致以下错误:

Downloading django-dbsettings-0.7.4.tar.gz
Running setup.py egg_info for package django-dbsettings
Traceback (most recent call last):
  File "<string>", line 16, in <module>
  File "/path/virtualenv/build/django-dbsettings/setup.py", line 23, in  <module>
    packages=find_packages(include=['dbsettings']),
TypeError: find_packages() got an unexpected keyword argument 'include'
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

File "<string>", line 16, in <module>

File "/path/virtualenv/build/django-dbsettings/setup.py", line 23, in <module>

packages=find_packages(include=['dbsettings']),

TypeError: find_packages() got an unexpected keyword argument 'include'

另外,我使用的是pip 1.0和python 2.7。
我怎样才能修好它?

最佳答案

使用较旧版本的setuptools时,include中没有find_packages()关键字,您需要升级:

pip install -U setuptools

我也会更新pip。

关于python - 通过pip安装软件包期间发生find_package()错误,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/55907749/

10-09 12:45