Learn about the Python learning record of a friend on the know-how and prepare to follow it. This friend used Ipython (because he mainly do scientific calculations, I will study data science in the future, feel very suitable), wine ready to install a ipython, did not expect a lot of problems.
1. Installing Ipython
The PIP3 list will find that there are ipython in the installed stuff, but when I play ipython, the command cannot be found.
( -bash: ipython: command not found
), very puzzled. So I went to stack Overflow:ipython installed but NotFound
The page is displayed as follows: Https://stackoverflow.com/questions/34441943/ipython-installed-but-not-found
The first Netizen answered in great detail. At the command line, enter:python -m IPython 之后终端进入了ipython的页面,这说明你有ipython,但是无法正常打开,怎么解决这个问题呢?我的解决办法是安装了anaconda 然后在终端运行conda install jupyter,然后就可以在终端输入ipython之后进入ipython的页面了。
2.jupyter Notebook
In the terminal input Jupyter notebook, it should be said safari to open the home page, but do not know why not open, the same stack Overflow,:ipython notebook won't start on command Line The website is as follows: Https://stackoverflow.com/questions/44057601/ipython-notebook-will-not-start-on-command-line
Here's how to fix it:
- Generate Jupyter Config If you don't have it:
Jupyter notebook--generate-config (after entering this, you will create a file in the folder and display the location, type this address in the function you go to in Find, open the file with the text of your Mac, and edit it below)
- Use vim to open the config file and add Google Chrome value in:
C.notebookapp.browser = U ' Chrome ' (make sure to takes out of the # comment sign) (remember to remove #), if you want to open the webpage is safari, just turn Chrome into safari Just fine.
Summary of the situation of installing Ipython