vscode Python
Python环境
pip
python用户建议安装pip3,并设为pip默认版本
sudo apt install python3-pip sudo rm /usr/bin/pip sudo ln -s /usr/bin/pip3 /usr/bin/pip
为pip3换源(豆瓣的源,可以自己切换成其他):
[global] index-url = http://pypi.douban.com/simple/ [install] trusted-host=pypi.douban.com
Miniconda
安装Miniconda(我建议安装Miniconda而不是Anaconda,以尽量减少包之间的冲突)
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh bash Miniconda3-latest-Linux-x86_64.sh
使用默认参数安装,除了在.bashrc中最后一个附加PATH的选项输入yes > 重启终端
升级conda,安装必要包
conda update conda conda update --all conda install jupyter notebook pandas matplotlib netcdf4 holoviews geoviews
其他的conda用法可以自己上网搜索,可以参见下面这篇教程。
https://blog.csdn.net/marsjhao/article/details/62884246