1.安装:
Windows 10
Anaconda 下载:https://www.anaconda.com/products/individual
Pycharm 下载:https://www.jetbrains.com/pycharm/download/
2.配置虚拟环境:
python3:
conda create -n py3 python=3.7
python2:
conda create -n py2 python=2.7
3.Pycharm设置环境:File->Settings->Project->Project Interpreter
如果不知道虚拟环境的路径在哪,可以使用:
conda env list
比如:
运行Hello world!!!
到这里环境就安装成功了!!!!