linux中python3的编译安装步骤
下载python3的tar包并解压到/usr/local,进入解压后的目录,执行:
.configure = /usr/local/python3
make && make install
做软链接
ln -s /usr/local/python/bin/python3.6 /usr/bin/python3
ln -s /usr/local/python/bin/pip3.6 /usr/bin/pip3
此时,输入python用tab键补全就有python3命令了。
解决pandas模块安装报错
1.先执行
python3 -m pip install -U pip
2.再次安装
pip3 install pandas