Open ImreSamu opened 5 years ago
Thanks for the notes, @ImreSamu. I ran into this issue recently:
sudo pip install -r requirements.txt --process-dependency-links .
> Usage: pip install [OPTIONS] PACKAGE_NAMES...
> no such option: --process-dependency-links
In case others also run into this issue, my temporary solution was to downgrade my pip version. I followed steps here: https://pip.pypa.io/en/stable/installing/
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py pip==18.0
sudo python get-pip.py pip==18.0
This solved the issue and I was able to successfully run:
sudo pip install -r requirements.txt --process-dependency-links .
My comment above works fine in Python2, but will not work if you're using Python3 (you'll likely see a VersionConflict
error if you downgrade).
@Imresamu - what has been your workaround? Fiddling with the requirements.txt
and setup.py
files mentioned in https://github.com/pypa/pip/issues/4187#issuecomment-452862842?
@stepps00 :
debian:latest
+ python2.7
root@c51881b4a37f:/wof/tools/py-mapzen-whosonfirst-export# pip -V
pip 18.1 from /usr/lib/python2.7/dist-packages/pip (python 2.7)
root@c51881b4a37f:/wof/tools/py-mapzen-whosonfirst-export# pip list | grep who
mapzen.whosonfirst.elasticsearch 0.1.10
mapzen.whosonfirst.export 1.0.0
mapzen.whosonfirst.geojson 1.0.0
mapzen.whosonfirst.machinetag 0.1.2
mapzen.whosonfirst.mapshaper.index 0.1.4
mapzen.whosonfirst.meta 1.0.0
mapzen.whosonfirst.placetypes 1.0.0
mapzen.whosonfirst.search 0.4.9
mapzen.whosonfirst.sources 1.0.0
mapzen.whosonfirst.spatial 1.0.10
mapzen.whosonfirst.uri 1.0.0
mapzen.whosonfirst.utils 1.0.0
mapzen.whosonfirst.validator 1.0.0
root@c51881b4a37f:/wof/tools/py-mapzen-whosonfirst-export#
so probably I can't help ...
Thanks @ImreSamu
For now, this can installed with newer pip versions by simply using:
sudo pip install -r requirements.txt .
Current recomended installing:
sudo pip install -r requirements.txt --process-dependency-links .
but now: pip 19.0 (2019-01-22)
--process-dependency-links
option."workarounds: