gpt4 book ai didi

python - 无法使用 easy_install 安装 DjangoSEO

转载 作者:可可西里 更新时间:2023-11-01 10:47:27 26 4
gpt4 key购买 nike

这是我第一次在 Windows 7 上使用 easy_install。我想用它安装 DjangoSEO。但它显示错误。我有 Python2.7(32 位)。谁能帮我解决这个问题?

 C:\Users\hl>easy_install DjangoSEO
Searching for DjangoSEO
Reading http://pypi.python.org/simple/DjangoSEO/
Best match: DjangoSEO 1.0
Downloading http://pypi.python.org/packages/source/D/DjangoSEO/DjangoSEO-1.0.ta
.gz#md5=69cd65eb3a9d716b5ba067b1a4e63735
Processing DjangoSEO-1.0.tar.gz
Running DjangoSEO-1.0\setup.py -q bdist_egg --dist-dir c:\users\hl\appdata\loca
\temp\easy_install-nb1z4k\DjangoSEO-1.0\egg-dist-tmp-_nez8j
Traceback (most recent call last):
File "C:\Python27\Scripts\easy_install-script.py", line 8, in <module>
load_entry_point('setuptools==0.6c11', 'console_scripts', 'easy_install')()
File "build\bdist.win32\egg\setuptools\command\easy_install.py", line 1676, i
main

File "build\bdist.win32\egg\setuptools\command\easy_install.py", line 1664, i
with_ei_usage

File "build\bdist.win32\egg\setuptools\command\easy_install.py", line 1680, i
<lambda>

File "C:\Python27\lib\distutils\core.py", line 152, in setup
dist.run_commands()
File "C:\Python27\lib\distutils\dist.py", line 953, in run_commands
self.run_command(cmd)
File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "build\bdist.win32\egg\setuptools\command\easy_install.py", line 211, in
run

File "build\bdist.win32\egg\setuptools\command\easy_install.py", line 446, in
easy_install

File "build\bdist.win32\egg\setuptools\command\easy_install.py", line 476, in
install_item

File "build\bdist.win32\egg\setuptools\command\easy_install.py", line 655, in
install_eggs

File "build\bdist.win32\egg\setuptools\command\easy_install.py", line 932, in
build_and_install

File "build\bdist.win32\egg\setuptools\command\easy_install.py", line 921, in
run_setup

File "build\bdist.win32\egg\setuptools\sandbox.py", line 26, in run_setup
File "build\bdist.win32\egg\setuptools\sandbox.py", line 66, in run
File "build\bdist.win32\egg\setuptools\sandbox.py", line 28, in <lambda>
File "setup.py", line 35, in <module>
description="pip installs packages. Python packages. An easy_install replac
ment",
File "C:\Python27\lib\distutils\core.py", line 112, in setup
_setup_distribution = dist = klass(attrs)
File "build\bdist.win32\egg\setuptools\dist.py", line 223, in __init__
File "C:\Python27\lib\distutils\dist.py", line 287, in __init__
self.finalize_options()
File "build\bdist.win32\egg\setuptools\dist.py", line 256, in finalize_option

File "build\bdist.win32\egg\pkg_resources.py", line 1916, in load
than any other pre-release tag.
ImportError: <module 'setuptools.dist' from 'C:\Python27\lib\site-packages\dist
ibute-0.6-py2.7.egg\setuptools\dist.pyc'> has no 'check_packages' attribute

最佳答案

我删除了 sitepackages 中的所有 setuptools 文件和 easy_install 文件。然后从 http://python-distribute.org/ 下载 distribute_setup.py使用 python 运行它,并使用 pip 安装 djang-seo。解决了问题

关于python - 无法使用 easy_install 安装 DjangoSEO,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17434202/

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