一般的Linux系统自带Python2,像Ubuntu也自带了Python3,可以跳过此步。此步主要简单讲述安装python3
# Ubuntu 16.04 >>>sudo apt install update >>>sudo apt install python3 python-pip # Centos >>>yum install update >>>yum install python3 python3-pip如果已经更改了pip更新源可跳过此步
# 使用vim编辑pip的配置文件 >>>vim ~/.pip/pip.conf # 加入如下内容之后,即可保存退出 ` [global] index-url =https://mirrors.ustc.edu.cn/pypi/web/simple format =columns `如果使用jupyter-notebook用作科学计算,还需要安装以下第三方包
# 注意pip版本 # 安装numpy,安装过程中会有c文件的编译,可能会报些错,但不影响最终结果,科学计算 >>>pip install numpy # 安装scipy,安装过程中会有c文件的编译,可能会报些错,但不影响最终结果,科学计算 >>>pip install scipy # 安装matplotlib,画图可视化 >>>pip install matplotlib # 安装pandas,科学计算 >>>pip install pandas >>>pip install scikit-learn参考文章
