Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python: Pip failing when adding platform option

Tags:

python

pip

My machine has python 2.7 and windows 7 x64. I am trying to download a python 3.5 and Linux compatible version of a package. It works when I pass in the version option, it works when I pass in the platform, but fails when passed in together.

This works for me:

pip download --only-binary=:all: --python-version 35 numpy

This also works:

pip download --only-binary=:all: --platform manylinux1_x86_64 numpy

This does not work:

pip download --only-binary=:all: --python-version 35 --platform manylinux1_x86_64 numpy

Could not find a version that satisfies the requirement numpy==1.12.1 (from versions: ) 
No matching distribution found for numpy==1.12.1
like image 927
George Avatar asked Oct 25 '25 05:10

George


1 Answers

It is also necessary to specify the --abi

pip download --only-binary=:all: --python-version 35 --abi cp35m --platform manylinux1_x86_64 numpy
like image 164
George Avatar answered Oct 26 '25 18:10

George