2014-02-19 89 views
1

我使用Python,並要安裝模塊zope.interface窗口7 end_progress,我用了CMD:蟒蛇安裝zope.interface模塊,顯示:Asse田:嘗試沒有start_progress

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 

請讓我知道,如果你有任何解決上述錯誤的解決方法。

回答

1

here Donwload zope.interface的.egg並嘗試這CMD:

C:\ Python27 \腳本\ easy_install.exe C:\ zope.interface-3.6.1-py2.6-win32的.egg

注意:要安裝.egg,我們需要作爲setuptools一部分的「簡易安裝」。所以,我們必須先安裝setuptools。從here下載它。注意2:如果不在C:\路徑上,.egg有時無法識別