0

由于我的 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 挤压

4

1 回答 1

1

这是一个pip错误。pip团队已经解决了这个问题,因此作为解决方法,您可以在安装其他任何东西之前手动安装具有特定版本的 pytz:

pip install pytz==2013k

或更方便:

pip install --pre pytz

根据问题讨论,pip 对pytz版本控制感到困惑,并且最新release版本被错误地解释为prerelease. 使用 --pre 选项,您可以强制安装prerelease实际上是release.

然后你就可以安装其他依赖于 pytz 的包了。

于 2013-07-28T16:51:07.493 回答