通过pip安装软件包时出现find_package()错误 [英] find_package() errors during installing package via pip

查看:100
本文介绍了通过pip安装软件包时出现find_package()错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用pip安装 django-dbsettings ,但这会导致以下错误:

I'm tring to install django-dbsettings with pip but it causes the following error:

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.

Also I'm using pip 1.0 and python 2.7.

我该如何解决?

推荐答案

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

There is no include keyword in find_packages() using older versions of setuptools, you need to upgrade:

pip install -U setuptools

我也会更新点子.

这篇关于通过pip安装软件包时出现find_package()错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆