I have a requirements requirements file that I use with virtualenv to automatically capture dependencies for my application.
The application depends on both NumPy and SciPy, and as such, the requirements file for my applications includes:
numpy==1.5.0 scipy==0.8.0
However, when you run this pip in a new virtualenv, the installation fails with the following error:
File "/Users/x/virtualenv/deploy/src/scipy/setup.py", line 58, in svn_version from numpy.compat import asstr ImportError: No module named numpy.compat Complete output from command python setup.py egg_info: Traceback (most recent call last):
This is because SciPy requires installing NumPy before it is built. Therefore, if I remove SciPy and then manually add SciPy (pip install scipy), it will work.
How can I solve this problem, given that pip is not installed in any particular order?
epoch source share