Python3 using PIP to install Ipython notebook

Source: Internet
Author: User

Python 3.6, because do not want to install Anaconda, but Ipyhon notebook has been wrong, so do a good honor after this.

    1. Command line enter PIP install Ipython[all], install Ipython
    2. Command line Input Ipython notebook, found and can not run, Error: Modulenotfounderror:no module named ' Markupsafe._compat '
    3. Through the PIP list to view the installed package, found that the Markupsafe has been installed, but in the Python environment import Markupsafe._compat found that there is no module, it feels like the module installation is not successful, so reinstall this package. Uninstall this package first via PIP uninstall Markupsafe. Then PIP list, confirm uninstalling this module.
    4. Reinstall Markupsafe This module: first do not direct pip install Markupsafe installation, because you will find the error: Unicodedecodeerror: ' Utf-8 ' codec can ' t decode byte 0xb6. But this time you will find in PIP list that this markupsafe is already installed, so first pip uninstall Markupsafe, make sure, make sure that this package is unloaded. Open python location: {Python installation directory}\lib\site-packages\pip\compat, open __init__.py with a text editor (such as Notepad), return S.decode (' Utf_8 ') on line 75th, Replace this line with return S.decode (' cp936 '). This is an error that the PIP installation module often encounters. Save and exit when you are finished changing. Again pip install Markupsafe will be able to install this package properly.
    5. After the normal installation of this package and then Ipython notebook, I found that can be opened.

Python3 using PIP to install Ipython notebook

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.