python - pip freeze and order of dependencies -


`pip freeze > requirements.txt`  

automatically writes dependencies in apparently alphabetically order, this:-

matplotlib==1.2.0 numpy==1.6.2 pandas==0.9.1 

the problem pip install -r requirements.txt (when deploy code dependencies listed in requirements.txt) end failing because matplotlib needs numpy installed first.

how can ensure matplotlib listed after numpy in requirements.txt file when pip freeze it?

for case not matter, because pip builds every requirements (calling python setup.py egg_info each) , install them all. specific case, not matter, because numpy required installed while building matplotlib.

it problem matplotlib, , created proposal fix it: https://github.com/matplotlib/matplotlib/wiki/mep11

see comments issue @ pip issue tracker: https://github.com/pypa/pip/issues/25

this question duplicate of matplotlib requirements pip install in virtualenv.


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -