赞
踩
1,numpy(基础数值算法) 安装,要是在cmd直接安装到最后会报错,
import numpy as np ModuleNotFoundError: No module named 'numpy'
直接进入python环境,输入python -m pip install numpy就不会报错
2. scipy (科学计算)安装
也可以从下面的sklearn安装进来
import scipy.misc as sm
ModuleNotFoundError: No module named 'scipy'
cd D:\Python37\
python -m pip install scipy
3, matplotlib(数据可视化)安装同上
在subline text3导入时报如下错误 ModuleNotFoundError: No module named 'matplotlib'
cd D:\Python37\
python -m pip install matplotlib
4. pandas(序列高级函数)安装
cd D:\Python37\
python -m pip install pandas
5,sklearn( 深度学习) 安装(scipy)也从这里安装进来了
Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\shape.py", line 2, in <module>
import sklearn.preprocessing as sp
ModuleNotFoundError: No module named 'sklearn'
6.如何打开.ipynb文件
cd D:\Python37\
python -m pip install ipython
安装完成打印如下:
python -m pip install “ipython[notebook]”
使用时,直接在cmd命令行窗口启动
C:\Users\py>jupyter notebook
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。