下载安装:
下载地址:https://www.anaconda.com/download/
安装:next--->next--->next
注意点:选择所有用户
勾选环境配置
安装完成,页面的勾选可以去掉
完成后可以看到:
简单使用:
- 打开:Anaconda Prompt(上图第三个)
- 修改为清华源
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud//pytorch/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
conda config --set show_channel_urls yes
移除清华源
输入:conda config --remove channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
这个命令是为了移除之前conda config --show channels显示的清华源。
3.执行指令:conda create --name py3.7 python=3.7
创建一个python版本为3.7, 名为py3.7的虚拟环境
4. 切换环境:conda activate py3.7 切换到py3.7虚拟环境
5. 下载python包:pip3 install XXXX
或 pip3 install -r "(C/D/E/F):\xxxx\xxxx\requirements.txt"
6.配置环境:打开Pycharm-->File-->Settings...
查看是否自动检索,如若没有,请手段添加(默认在C盘)
7.配置启动器:(odoo.conf文件懂得都懂吧)
简单使用到此结束,更为详细的使用方式可参考:
https://blog.csdn.net/tqlisno1/article/details/108908775
Anaconda简单使用