美文网首页我爱编程
Python 使用包管理工具pip安装模块numpy、scipy

Python 使用包管理工具pip安装模块numpy、scipy

作者: 舒map | 来源:发表于2017-06-06 21:24 被阅读0次

由于python中这些模块之间具有相互依赖的关系,故在安装这些模块时的顺序如下

1.安装numpy

# pip install numpy

成功安装如下图所示

2.安装scipy

# pip install scipy

成功安装如下图所示

3.安装matplotlib

#yum install freetype-devel

#yum install libpng-devel

# pip install matplotlib

成功安装如下图所示

4.安装scikit-learn

# pip install -U scikit-learn

5.测试

若在python交互式命令下能够成功引入以下模块,则说明安装成功,如下图所示

相关文章

网友评论

    本文标题:Python 使用包管理工具pip安装模块numpy、scipy

    本文链接:https://www.haomeiwen.com/subject/kypnfxtx.html