gpt4 book ai didi

python - 通过 pip 安装包时出现 find_package() 错误

转载 作者:太空宇宙 更新时间:2023-11-04 11:51:43 24 4
gpt4 key购买 nike

我想用 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。

我该如何解决?

最佳答案

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

pip install -U setuptools

我也会更新 pip。

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

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com