pip install messytables[pdf]
So does this when in a checkout of the messytables source:
pip install --editable ".[pdf]"
But this does not work:
pip install ".[pdf]"
Workaround is to give a full URI like file:///home/you/src/foo#egg=foo[bar,baz],
Workaround for extras not working with .
See also pypa/pip#1236
#2000 is a duplicate of this.
I hit this today, too.
Quite annoying. In travis I wanted to do this:
- python setup.py sdist
- pip install dist/*.tar.gz[cdf,netcdf]
But it failed with:
File "/home/travis/miniconda/envs/test/lib/python2.7/site-packages/pip/_vendor/pkg_resources.py", line 2573, in scan_list
raise ValueError("Expected "+item_name+" in",line,"at",line[p:])
ValueError: ('Expected version spec in', 'dist/*.tar.gz[cdf,netcdf]', 'at', '/*.tar.gz[cdf,netcdf]')
Got bitten by this today. For completeness, this is the error you get:
$ pip install .[testing]
Could not find any downloads that satisfy the requirement .[testing]
No distributions at all found for .[testing]
Added tests for extras specifications as part of requirement parsing.…
… Breaking tests are in preparation of a fix for #1236.
Addresses issue #1236. Extras can now be specified on file/directory-…
…like requirement specifications as well as url requirement specifications.
Fixed in #2785
try to fix error from pip install with extras (pip install file:///..…
….brozzler[webconsole]) by including #egg=brozzler as suggested at pypa/pip#1236 (comment) , travis-ci error can be seen at https://travis-ci.org/internetarchive/brozzler/builds/168727451
Need `"` around `.[dev]` or it won't work. Well, at least for me, it failed:
$ pip install -e .[dev]
zsh: no matches found: .[dev]
Seems related to pypa/pip#1236