python - Could not find a version that satisfies the requirement <package> -


i'm installing several python packages in ubuntu 12.04 using following requirements.txt file:

numpy>=1.8.2,<2.0.0 matplotlib>=1.3.1,<2.0.0 scipy>=0.14.0,<1.0.0 astroml>=0.2,<1.0 scikit-learn>=0.14.1,<1.0.0 rpy2>=2.4.3,<3.0.0 

and these 2 commands:

$ pip install --download=/tmp -r requirements.txt $ pip install --user --no-index --find-links=/tmp -r requirements.txt 

(the first 1 downloads packages , second 1 installs them).

the process stopped error:

  not find version satisfies requirement <package> (from matplotlib<2.0.0,>=1.3.1->-r requirements.txt (line 2)) (from versions: ) no matching distribution found <package> (from matplotlib<2.0.0,>=1.3.1->-r requirements.txt (line 2)) 

which fix manually with:

pip install --user <package> 

and run second pip install command again.

but works that particular package. when run second pip install command again, process stopped complaining another required package , need repeat process again, ie: install new required package manually (with command above) , run second pip install command.

so far i've had manually install six, pytz, nose, , it's complaining needing mock.

is there way tell pip automatically install all needed dependencies don't have manually 1 one?

add: happens in ubuntu 12.04 btw. in ubuntu 14.04 pip install commands applied on requirements.txt file work without issues.

this approach (having dependencies in directory , not downloading index) works when directory contains packages. directory should therefore contain dependencies packages dependencies depend on (e.g., six, pytz etc).

you should therefore manually include these in requirements.txt (so first step downloads them explicitly) or should install packages using pypi , pip freeze > requirements.txt store list of packages needed.


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -