U
U
un1t2016-01-27 17:31:39
Python
un1t, 2016-01-27 17:31:39

Why aren't packages being installed in Python?

Dependencies are written in the requirements.txt file

numpy
scipy
matplotlib
pandas
scikit-learn
pylab
notebook

pip install -r requirements.txt
Collecting numpy (from -r requirements.txt (line 1))
  Using cached numpy-1.10.4.tar.gz
 ...
Collecting scikit-image (from pylab->-r requirements.txt (line 6))
  Using cached scikit-image-0.11.3.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 20, in <module>
      File "/tmp/pip-build-146zneay/scikit-image/setup.py", line 76, in <module>
        from numpy.distutils.core import setup
    ImportError: No module named 'numpy'

If you just install the same dependencies in order
pip install numpy
pip install scipy
pip install matplotlib
pip install pandas
pip install scikit-learn
pip install pylab
pip install notebook

then everything is fine.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2016-01-27
@sim3x

Try splitting into multiple files with

cat requirements.txt

-r req1.txt
-r req2.txt

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question