Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ImreSamu opened this issue Jan 25, 2019 · 4 comments · May be fixed by #29
Open

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

ImreSamu opened this issue Jan 25, 2019 · 4 comments · May be fixed by #29

Comments

@ImreSamu
Copy link

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

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

  • "Remove the deprecated --process-dependency-links option."

workarounds:

@stepps00
Copy link
Member

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
Copy link
Member

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 pypa/pip#4187 (comment)?

@ImreSamu
Copy link
Author

@stepps00 :

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 ...

@stepps00
Copy link
Member

Thanks @ImreSamu

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

sudo pip install -r requirements.txt .

@missinglink missinglink linked a pull request Aug 4, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants