dronekit安装错误:说明无效

时间:2015-11-10 19:22:11

标签: dronekit-python dronekit

我按照说明安装了dronekit-python,如“入门”页面所述。 我运行了以下命令:

pip install dronekit

我收到了一条消息:

  

Cold找不到满足dronekit要求的版本(来自   版本:2.0.0b2 .... 2.0.0rc9)

我做了两天前 scaredrone 的规定:

pip install dronekit=2.0.0rc4

我得到了例外:

Exception:
Traceback (most recent call last):
  File "C:\WinPython-64bit-2.7.6.4\python-2.7.6.amd64\lib\site-packages\pip\basecommand.py", line 122, in main
    status = self.run(options, args)
  File "C:\WinPython-64bit-2.7.6.4\python-2.7.6.amd64\lib\site-packages\pip\commands\install.py", line 257, in run
    InstallRequirement.from_line(name, None))
  File "C:\WinPython-64bit-2.7.6.4\python-2.7.6.amd64\lib\site-packages\pip\req.py", line 172, in from_line
    return cls(req, comes_from, url=url, prereleases=prereleases)
  File "C:\WinPython-64bit-2.7.6.4\python-2.7.6.amd64\lib\site-packages\pip\req.py", line 70, in __init__
    req = pkg_resources.Requirement.parse(req)
  File "C:\WinPython-64bit-2.7.6.4\python-2.7.6.amd64\lib\site-packages\pip\_vendor\pkg_resources.py", line 2606, in parse
    reqs = list(parse_requirements(s))
  File "C:\WinPython-64bit-2.7.6.4\python-2.7.6.amd64\lib\site-packages\pip\_vendor\pkg_resources.py", line 2544, in parse_requirements
    line, p, specs = scan_list(VERSION,LINE_END,line,p,(1,2),"version spec")
  File "C:\WinPython-64bit-2.7.6.4\python-2.7.6.amd64\lib\site-packages\pip\_vendor\pkg_resources.py", line 2512, in scan_list
    raise ValueError("Expected "+item_name+" in",line,"at",line[p:])
ValueError: ('Expected version spec in', 'dronekit=2.0.0rc4', 'at', '=2.0.0rc4')

1 个答案:

答案 0 :(得分:2)

我遇到了同样的问题。尝试运行

sudo pip install --pre dronekit

--pre标志可以安装预发布软件。 不知道为什么没有记录。

从这里回答:https://discuss.dronekit.io/t/pip-install-dronekit-fails-on-odroid-xu4-unless-pre-is-used/93