I have reqirements.txt
that has the line numpy
. I run the following command to download the dependencies:
pip install --download vendor -r requirements.txt
This downloads all dependencies to the vendor
folder and one of the file name is: numpy-1.13.0-cp27-cp27mu-manylinux1_x86_64.whl
But when I cf push
my application using the downloaded dependencies in the vendor
folder, I get an error below:
Could not find a version that satisfies the requirement numpy (from -r requirements.txt (line 3)) (from versions: )
Is there a way to resolve this? I believe this is happening because of the difference in the way the numpy file is named in vendor directory and the requirements.txt file.
My requirements.txt file contains the following:
flask-restful
Flask
numpy
Pillow==2.7.0
argparse==1.2.1
requests==2.5.1
boto3
boto
six==1.10.0
scikit-image
The error happens only on numpy
and scikit-image
. Other dependencies go ok.
This question is related to how to download pip dependencies locally?