0

我按照入门页面中的说明安装了dronekit-python。我运行了以下命令:

pip install dronekit

我收到一条消息:

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

两天前我按照害怕的规定做了:

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')
4

1 回答 1

2

我有同样的问题。尝试运行

sudo pip install --pre dronekit

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


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

于 2015-11-10T21:34:40.537 回答