Python 3.6, because do not want to install Anaconda, but Ipyhon notebook has been wrong, so do a good honor after this.
- Command line enter PIP install Ipython[all], install Ipython
- Command line Input Ipython notebook, found and can not run, Error: Modulenotfounderror:no module named ' Markupsafe._compat '
- 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.
- 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.
- After the normal installation of this package and then Ipython notebook, I found that can be opened.
Python3 using PIP to install Ipython notebook