jupyter notebook直接安装模块

Install numpy pandas nltk in the Jupyter notebook

import sys
!{sys.executable} -m pip install numpy pandas nltk

Type in the command pip install numpy pandas nltk in the first cell. Click Shift + Enter to run the cell's code. An asterisk will then appear in the brackets indicating it is running the code.

When finished, a new cell will appear below. You are now ready to use Python commands to load-in and clean your data.