由于我的shell脚本中的错误,我不小心删除了/ usr目录,然后从这个虚拟机的早期备份恢复,然后重新安装了它的所有包,现在几乎一切正常,除了:
# 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
/root/.pip/pip.log- http://paste.kde.org/pbe71b739/
的内容系统 - Debian挤压
答案 0 :(得分:1)
这是一个pip
错误。 pip
团队遇到already closed此问题,因此在安装其他任何内容之前,您可以手动安装特定版本的pytz:
pip install pytz==2013k
或更方便:
pip install --pre pytz
根据问题讨论,pip对pytz
版本控制感到困惑,最新的release
版本被错误地解释为prerelease
。使用--pre选项,您可以强制安装prerelease
版本,实际上是release
。
然后,您将能够安装其他依赖于pytz的包。