据我所知,pip install。[ extras_require here ]一直有效。在添加该功能时,我在任何文档中都找不到,但即使在非常旧的机器上也没有任何问题。
pip肯定是问题所在。我可以添加'pip install --upgrade pip',但我没有对当前有问题的repo的合并权限。
来自setup.py
$qry = 'select ... from ... where ...';
$data = $db->do_select($qry);
echo json_encode(f_utf8_json($data));
在python 2.7.9中
extras_require={
'test': ['flake8', 'pytest>=2.9.0'],
},
从3.5.2开始:
$ python --version
Python 2.7.9
$ pip --version
pip 6.0.7 from /home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages (python 2.7)
$ pip install .[test]
Collecting .[test]
Could not find any downloads that satisfy the requirement .[test]
No distributions at all found for .[test]
The command "pip install .[test]" failed and exited with 1 during .
答案 0 :(得分:1)
答案 1 :(得分:0)
我获得了合并访问权限。将升级点添加到.travis.yml的安装阶段修复了它:
install:
# update pip to ensure extras_require format is supported
- 'pip install --upgrade pip'
- 'pip install ".[test]"'
从成功运行中,用pip-9.0.1替换6.0.7是delta。