Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: No module named IPython.display #2

Open
tobigithub opened this issue Nov 21, 2015 · 4 comments
Open

ImportError: No module named IPython.display #2

tobigithub opened this issue Nov 21, 2015 · 4 comments

Comments

@tobigithub
Copy link
Owner

When running mandelbrot-tensorflow.py

vm@ubuntu:~/tensorflow/tk$ python mandelbrot-tensorflow.py 
Traceback (most recent call last):
  File "mandelbrot-tensorflow.py", line 8, in <module>
    from IPython.display import clear_output, Image, display
ImportError: No module named IPython.display
@tobigithub
Copy link
Owner Author

Solution:

sudo pip install ipython

which leads to error

vm@ubuntu:~/tensorflow/tk$ python mandelbrot-tensorflow.py 
Traceback (most recent call last):
  File "mandelbrot-tensorflow.py", line 9, in <module>
    import scipy.ndimage as nd
ImportError: No module named scipy.ndimage

@tobigithub
Copy link
Owner Author

Solution

sudo pip install scipy

which leads to

Command "/usr/bin/python2.7 -c "import setuptools, tokenize;__file__='/tmp/pip-build-p9pAFf/scipy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-1yH0kh-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-p9pAFf/scipy

This is the common Ubuntu CF. No sane normal person can interpret this error.

@tobigithub
Copy link
Owner Author

Because Ubuntu 13 is EOL (endo of life) the obvious solution

sudo apt-get install python-scipy

leads to

Err http://us.archive.ubuntu.com/ubuntu/ saucy/universe python-scipy amd64 0.12.0-2ubuntu1
  404  Not Found [IP: 91.189.91.13 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/s/suitesparse/libamd2.2.0_3.4.0-3ubuntu1_amd64.deb  404  Not Found [IP: 91.189.91.13 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/s/suitesparse/libumfpack5.4.0_3.4.0-3ubuntu1_amd64.deb  404  Not Found [IP: 91.189.91.13 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/p/python-decorator/python-decorator_3.4.0-2_all.deb  404  Not Found [IP: 91.189.91.13 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/universe/p/python-scipy/python-scipy_0.12.0-2ubuntu1_amd64.deb  404  Not Found [IP: 91.189.91.13 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Why let a perfectly fine system die?

Because its Soylent Green Time, every Ubuntu has to die after 9 month, unless its the upper class
LTS version. Well its like Windows XP, first it sucks, then it works and then it sucks big.

@tobigithub
Copy link
Owner Author

Another option would be to use Anaconda (python package library)
https://www.continuum.io/downloads
or this
https://conda.anaconda.org/jjhelmus

@tobigithub tobigithub added the bug label Nov 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant