Skip to content

Latest commit

 

History

History
122 lines (56 loc) · 3.17 KB

File metadata and controls

122 lines (56 loc) · 3.17 KB

Tutorial of Python environment setting up with Windows

Install Anaconda Python 3.x

Click https://www.anaconda.com/download/ . If you work with a 64-bit CPU, choose as below:

(Click on No, thanks when asked for email address)

6

Run the installation. Remember to modify your PATH when installing, as shown in the screenshot below, you should tick on both options:

6

Then just clcik on "Next" till the end.

After installation, you can test if it's successful. With Windows 10, input cmd into search box on your task bar, then click on the first result:

4

Then, input python --version in console, press "Enter" and you'll get the result:

5

If the output looks similar, then you've installed Anaconda Python 3.x successfully.

Install OpenCV for Python

Input pip install opencv-python in console, if you get the shown output here, you've successfully installed OpenCV:

9

Download ORA code

Click on the URL below (Attention: the URL is for Test branch!):

https://github.com/appcell/OverwatchDataAnalysis/tree/test

Click Clone or Download, choose Download Zip:

10

Unzip the zip file into a folder without special characters in the path:

11

And here you get the code.

Run the code

In folder OverwatchDataAnalysis-dev, press shift + mouse right click on a blank area, then choose Open Powershell window here

12

In the prompt Powershell console, input python main.py, then you can run the code smoothly.

13

Windows 下 Python 运行环境搭建教程

安装Anaconda Python 2.x

点击 https://www.anaconda.com/download/ , 64位电脑按如下选择:

(如果提示要输入邮箱,选择 No thanks)

6

安装时注意要加入path,见下图,两个选项都要勾选:

6

然后就不停点下一步等待安装结束

安装结束以后,测试一下有没有安装成功: 在 win10 下,任务栏搜索框里输入 cmd, 选择第一个

4

然后在命令行里输入 python --version, 回车,如果得到如下结果:

5

安装 OpenCV for Python

在命令行里输入 pip install opencv-python, 得到如下图结果就是安装成功了:

9

下载代码

打开如下地址(注意是在test分支上,请点击以下地址!!!):

https://github.com/appcell/OverwatchDataAnalysis/tree/test

点击 Clone or Download, 选择 Download Zip

10

把下载到的压缩包解压到一个路径没有中文的文件夹:

11

运行代码

在 OverwatchDataAnalysis-dev 文件夹中,同时按住 shift + 鼠标右键,点击空白处,选择 Open Powershell window here

12

在弹出的Powershell 命令行窗口里输入python main.py, ORA窗口会弹出,然后就可以运行了

13