【问题标题】:Installing django-autocomplete (not light!) on osx在 osx 上安装 django-autocomplete(不是轻量级!)
【发布时间】:2015-03-10 05:33:43
【问题描述】:

当我尝试从要求安装 django-autocomplete 时:

sudo pip install -r requirements/requirements.txt

或者没有 sudo:

pip install -r requirements/requirements.txt

或直接使用pip:

pip install django-autocomplete

或使用 sudo:

sudo pip install django-autocomplete

失败并显示错误消息:

Collecting django-autocomplete (from -r requirements/requirements.txt (line 7))
  Downloading django-autocomplete-v0.1.tar.gz
    Traceback (most recent call last):
      File "<string>", line 18, in <module>
    IOError: [Errno 2] No such file or directory: '/tmp/pip-build-NHKHH9/django-autocomplete/setup.py'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

      File "<string>", line 18, in <module>

    IOError: [Errno 2] No such file or directory: '/tmp/pip-build-NHKHH9/django-autocomplete/setup.py'

有人知道如何解决这个问题吗?我正在使用最新的 OSX (yosemite)。

【问题讨论】:

  • 我可以在 osx 上重现这个问题。但是这个问题只发生在0.1 版本,而不是0.2。所以pip install django-autocomplete==0.2 在这里可以正常工作。
  • 谢谢,但是在我尝试之后我得到了一个错误:Could not find a version that satisfies the requirement django-autocomplete==0.2 (from versions: 0.1
  • 上游开发在 2011 年停滞不前。它可能从未移植到 python3。对我来说,它似乎在python2.x 中工作,我在python3.x 中看到同样的错误。

标签: python django macos autocomplete pip


【解决方案1】:

我在 Ubuntu 16.04 下遇到了同样的错误。
尝试使用 python 模块 django-autocomplete-light:

sudo pip install django-autocomplete-light

它解决了我的问题。

【讨论】:

    猜你喜欢
    • 2011-02-28
    • 1970-01-01
    • 1970-01-01
    • 2020-07-26
    • 2017-07-07
    • 2015-09-06
    • 2014-11-05
    • 2010-09-21
    • 2015-06-15
    相关资源
    最近更新 更多