Clone
1
Home
wzj edited this page 2021-11-27 18:54:57 +08:00
This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

一.安装 anaconda

anaconda 提供了包管理与环境管理的功能可以很方便地解决多版本python并存、切换以及各种第三方包安装问题。

下载地址

https://www.anaconda.com/products/individual

打开网站拖到最下方

根据自己的开发环境继续选择要安装的版本

我这边安装的是 64-Bit Graphical Installer (466 MB)

二.创建一个自己的开发环境

依次点击 Environments->Create 选择python 版本,我这选择的是的 3.7版本最新版本3.8有些python 库不支持。

点击创建之后会在anaconda 的安装目录下的envs 中创建一个python环境这里多了个 idphoto文件夹是我们刚才创建环境的时候输入的名字文件夹内容就是我们的python环境

image-20200527193752688

三.开发第一个python程序

我这边使用的开发工具是IDEA, 依次进入 File -> Settings ->Plugins 搜索python 安装python开发插件

image-3

使用刚才创建的python开发环境创建一个python项目执行python文件环境基本算搭建好

image-4