Jupyter installation and problems encountered.

Source: Internet
Author: User
Tags jupyter in python

importerror:no module named Notebook.notebookapp This article from http://my.oschina.net/u/1431433/blog/189337, thanks to the author

1. Download and install Python

Download: Python-3.3.3.amd64.msi (save in python.org download)

Install: Double-click Install directly

2. Download and install Setuptools

Download ez_setup.py to a directory (such as: e:\tools\ez_setup.py), download address: http://www.pip-installer.org/en/latest/installing.html# Install-or-upgrade-setuptools

Install: Enter E:\tools\, run:

C:\Python33\python.exe ez_setup.py

In this process, the system connects to the network to download the required installation package and completes the installation. This will allow you to use the Easy_install.

3. Download and install Pip

Download ez_setup.py to a directory (such as: e:\tools\get-pip.py), download address: http://www.pip-installer.org/en/latest/installing.html# Install-or-upgrade-setuptools

Install: Enter E:\tools\, run:

C:\Python33\python.exe get-pip.py

In this process, the system connects to the network to download the required installation package and completes the installation

4. Setting Environment variables

Add both C:\Python33 and c:\Python33\Scripts to the environment variable. Such as

C:>set path=%path%;c:\python33;c:\python33\scripts

With four steps ahead, you can start using Python under Windows.

1. Download and install Ipython:

C:>pip.exe Install Ipython

The system will go to the Internet to find Ipython packages, download and installation. Wait almost 5 minutes, the entire installation is completed, and also the Pyreadline also installed. Ipython3.exe is installed under c:\Python33\Scripts because the path support for the environment variable was previously added, so you can enter it directly:

C:>ipython3.exe

2. Try notebook, and also need to download some other thump

1 Download Installation PYZMQ, here do not recommend the use of PIP, PIP support for PYZMQ is not good, can not install. I try to use Easy_install

C:>easy_install.exe PYZMQ

2) Download and install JINJA2,

C:>easy_install.exe JINJA2

3) Download and install tornado,

C:>easy_install.exe tornado

Well, use the following command to get the notebook up:

C:>ipython3.exe Notebook

Note: If importerror:no module named Notebook.notebookapp appears during installation, please see http://stackoverflow.com/questions/ 31401890/importerror-no-module-named-notebook-notebookapp

3. Try the scientific calculation of drawing tools Matplotlib

Because the installed Ipython is a version of 1.1, the%matplotlib Magic code has been supported, but the matplotlib itself has to be downloaded.

1) Download and install nose

C:>pip.exe Install nose

2 in order to save trouble, download in this step, from this link can get http://www.lfd.uci.edu/~gohlke/pythonlibs/

Numpy-mkl-1.8.0.win-amd64-py3.3.exe should pay attention to IS, because we use is python3.3, so must also choose py3.3 numpy, otherwise can not install. It's about 28M. Install directly, it will determine the installation path according to the Pythoninstall registered in the Windows registry.
3 The final installation of matplotlib. However, because of some problems, Pip and easy_install can not be pressed, so it is also directly on the Internet to download Matplotlib installation package. https://github.com/matplotlib/matplotlib/downloads/This URL above, select the 64-bit support python3.3 version can be.

Matplotlib-1.2.0.win-amd64-py3.3.exe
4) but also a little bit, the system prompts you to install scipy. Still go to this website http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy-stack Download Scipy-0.13.2.win-amd64-py3.3.exe

OK, that's it.  
in Notebook, try the following program: 
================================ 
Import NumPy as NP  
from scipy.ndimage import filters 
Import io 
Import matplotlib 
Import Matplotl Ib.image as mpimg 
img = Np.zeros ((+))  
Img[np.random.randint (0, 1000), Np.random.randint ( 0, 1000)] = 255 
Img2 = Filters.gaussian_filter (img, 4, order=2)  

Import io 
Impor T matplotlib 
Import matplotlib.image as mpimg 
from IPython import display 
buf = io. Bytesio ()  
Matplotlib.image.imsave (buf, Img2, cmap= "Gray")  
display. Image (Buf.getvalue ())  

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.