一. 安装Anaconda -内置了大量的python类库
1) 下载链接: https://www.anaconda.com/distribution/#download-section, 清华大学的镜像: https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/
2) 安装Anaconda:
a) sudo bash Anaconda3-5.3.1-Linux-x86_64.sh
b) Do you accept the license terms? [yes|no] yes 之后回车
c) Anaconda3 will now be installed into this location:
/home/xxx/anaconda3
- Press ENTER to confirm the location
- Press CTRL-C to abort the installation
- Or specify a different location below
[/home/xxx/anaconda3] >>> 回车
d) Do you wish the installer to initialize Anaconda3
in your /home/xxx/.bashrc ? [yes|no]
[no] >>> yes 回车
e) Do you wish to proceed with the installation of Microsoft VSCode? [yes|no]
>>> no 回车, 因为我们使用Pycharm
3) 安装Pycharm
4. 引入Anaconda的python作为Pycharm默认python: File-> Settings-> Project Interpreter-> Show All-> + ->
a) Conda Environment (这里会自动找到Anaconda的python)
b) 也可以Virtualenv Environment-> Base interpreter, 选中/home/xxx/anaconda3/bin/python3.x
c) 注意点OK后回到Setting界面, 点击右侧刷新按钮, 可以同步出此python的库文件