简体   繁体   English

Django-Debug-toolbar:没有名为setuptools的模块

[英]Django-Debug-toolbar: No module named setuptools

I am trying to install Django-Debug-toolbar. 我正在尝试安装Django-Debug-toolbar。

I have downloaded the .tar file and done the two extractions. 我已经下载了.tar文件并完成了两次提取。 Then I have placed the extracted folder somewhere and done what I always do, which is to cd to the folder containing setup.py and then execute 然后,将提取的文件夹放置在某个地方,并完成我通常要做的工作,即将其CD到包含setup.py的文件夹中,然后执行

python setup.py install

I get an error "No module named setuptools". 我收到一个错误“没有名为setuptools的模块”。 Do I really need to download and install something else just to install this? 我是否真的需要下载并安装其他东西才能安装它? I have installed all my other packages in this way. 我已经以这种方式安装了所有其他软件包。

Thanks! 谢谢!

好吧,我安装了分发版http://pypi.python.org/pypi/distribute ,然后能够安装调试工具栏,该工具栏现在可以使用了。

问题是您可以安装setuptools或分发,但建议的步骤是安装分发,因为setuptools对于Python 3及更高版本不可用,从Django 1.5开始就可以使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM