gpt4 book ai didi

python安装zope.interface模块,显示: AssertionError: Tried to end_progress without start_progress

转载 作者:太空宇宙 更新时间:2023-11-03 18:34:14 25 4
gpt4 key购买 nike

我使用python,并且想在window 7中安装模块zope.interface,我使用了cmd:

pip install zope.interface

但控制台显示:

Removing temporary dir c:\users\000790\appdata\local\temp\pip_build_000790...
Exception:

Traceback (most recent call last):

File "C:\Python27\lib\site-packages\pip\basecommand.py", line 134, in main
status = self.run(options, args)

File "C:\Python27\lib\site-packages\pip\commands\install.py", line 236, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)

File "C:\Python27\lib\site-packages\pip\req.py", line 1092, in prepare_files
self.unpack_url(url, location, self.is_download)

File "C:\Python27\lib\site-packages\pip\req.py", line 1238, in unpack_url
retval = unpack_http_url(link, location, self.download_cache, self.download_dir)

File "C:\Python27\lib\site-packages\pip\download.py", line 622, in unpack_http_url
download_hash = _download_url(resp, link, temp_location)

File "C:\Python27\lib\site-packages\pip\download.py", line 510, in _download_url
logger.end_progress('%s downloaded' % format_size(downloaded))

File "C:\Python27\lib\site-packages\pip\log.py", line 98, in end_progress
"Tried to end_progress without start_progress")

AssertionError: Tried to end_progress without start_progress

如果您对上述错误有任何解决方法,请告诉我。

最佳答案

here下载zope.interface 的 .egg 并在 CMD 中尝试:

c:\Python27\Scripts\easy_install.exe c:\zope.interface-3.6.1-py2.6-win32.egg

注意:要安装 .egg,我们需要安装工具中的“轻松安装”。所以,我们必须先安装setuptools。从here下载.

注 2:如果 .egg 不在 C:\路径上,有时会无法识别

关于python安装zope.interface模块,显示: AssertionError: Tried to end_progress without start_progress,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21871035/

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