2013-07-26 53 views
0

由於我的shell腳本中有錯誤,我不小心刪除了/ usr目錄,然後從該虛擬機的早期備份中恢復,然後重新安裝它的所有軟件包,現在幾乎一切正常,但:/root/.pip/pip.log的意外刪除/ usr後,pip找不到依賴關係

# pip install --no-install --download-cache="./" django-celery 
Downloading/unpacking django-celery 
    Using download cache from ./https%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2Fd%2Fdjango-celery%2Fdjango-celery-3.0.17.tar.gz 
    Running setup.py egg_info for package django-celery 
    no previously-included directories found matching 'bin/*.pyc' 
    no previously-included directories found matching 'tests/*.pyc' 
    no previously-included directories found matching 'docs/*.pyc' 
    no previously-included directories found matching 'extra/*.pyc' 
    no previously-included directories found matching 'djcelery/*.pyc' 
    no previously-included directories found matching 'docs/.build' 
    no previously-included directories found matching 'examples/*.pyc' 
Downloading/unpacking pytz (from django-celery) 
    Could not find a version that satisfies the requirement pytz (from django-celery) (from versions: 2009r, 2008b, 2009f, 2008c, 2007g, 2011g, 2005m, 2011e, 2007f, 2011k, 2007k, 2006j, 2008h, 2008i, 2011e, 2008a, 2009e, 2006g, 2011j, 2010l, 2005m, 2008i, 2005k, 2008g, 2007c, 2007i, 2009l, 2009r, 2006j, 2011k, 2007d, 2006p, 2009i, 2009u, 2007i, 2009f, 2010g, 2008h, 2009a, 2007g, 2011e, 2006p, 2012b, 2010k, 2005r, 2007f, 2009l, 2009p, 2008c, 2009j, 2008g, 2010g, 2010h, 2011h, 2010k, 2007c, 2007d, 2011d, 2009l, 2011c, 2008a, 2005m, 2007k, 2009n, 2011d, 2010o, 2013b, 2012h, 2010e, 2012c, 2012d, 2012f, 2011n, 2011b, 2011j, 2008c, 2012j, 2007k, 2009f, 2009d, 2010e, 2010b, 2013b, 2011d, 2009p, 2008h, 2005r, 2009i, 2009n, 2009a, 2010k, 2008g, 2006g, 2008b, 2012c, 2009i, 2007g, 2012c, 2010h, 2011n, 2012g, 2007d, 2008a, 2009u, 2012g, 2010o, 2006p, 2010b, 2009u, 2012d, 2011k, 2012f, 2009a, 2007f, 2011h, 2010l, 2009j, 2011g, 2009g, 2009g, 2005r, 2011c, 2012g, 2009g, 2012d, 2009j, 2010o, 2007c, 2010g, 2006g, 2009d, 2010h, 2005k, 2006j, 2010b, 2009n, 2011g, 2011c, 2012b, 2009e, 2009d, 2011j, 2007i, 2012j, 2010l, 2009r, 2012h, 2010e, 2009p, 2008i, 2012f, 2009e, 2012b, 2011h, 2005k, 2008b, 2011n, 2012j, 2013b, 2004b) 
No distributions matching the version for pytz (from django-celery) 
Storing complete log in /root/.pip/pip.log 

內容 - http://paste.kde.org/pbe71b739/

系統 - Debian的擠壓

回答

1

這是一個pip錯誤。該pip團隊already closed這個問題,這樣的解決方法,你可以安裝任何其他事情之前手動安裝特別版pytz:

pip install pytz==2013k 

或更方便:

pip install --pre pytz 

根據該問題的討論,PIP是關於pytz版本和最新release版本被錯誤地解釋爲prerelease。使用--pre選項,您可以強制安裝prerelease版本,該版本實際上是release

然後你就可以安裝依賴於pytz的其他軟件包。

+0

好吧,我現在無法檢查它,但讓它成真:) – scythargon