我正在用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'

另外,我使用的是PIP1.0和Python2.7。
我怎么修?

最佳答案

在使用旧版本的安装工具的include中没有find_packages()关键字,您需要升级:

pip install -U setuptools

我也会更新pip。

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

10-12 21:03