whosonfirst / py-mapzen-whosonfirst-export

Export tools for the Who's On First documents
BSD 3-Clause "New" or "Revised" License
2 stars 3 forks source link

[Install] --process-dependency-links removed in pip >= 19.0 #20

Open ImreSamu opened 5 years ago

ImreSamu commented 5 years ago

Current recomended installing: sudo pip install -r requirements.txt --process-dependency-links .

but now: pip 19.0 (2019-01-22)

workarounds:

stepps00 commented 4 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 .
stepps00 commented 4 years ago

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?

ImreSamu commented 4 years ago

@stepps00 :

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 ...
stepps00 commented 4 years ago

Thanks @ImreSamu

For now, this can installed with newer pip versions by simply using:

sudo pip install -r requirements.txt .