Home > Backend Development > Python Tutorial > How to configure python in Geany?

How to configure python in Geany?

青灯夜游
Release: 2019-12-31 09:13:05
Original
42107 people have browsed it

How to configure python in Geany?

How to configure python in Geany:

1. Download and install the file

1. Download Python

Download address:

https://www.python.org/downloads/

After the download is completed, follow the Windows standards Installation method - double-click to execute, it is recommended to use the default installation.

If you need to use tensorflow for development, you must install the 64bit version. I will update the tutorial on directly installing tensorflow in python next week.

Note: Please be sure to check the Add to path option for subsequent use.

Recommended manual:Python basic introductory tutorial

2. Download Geany

Download address: https://download. geany.org/geany-1.34_setup.exe

2. Configure python in geany

1. Open Geany, select New main.py## in the drop-down menu of New.

How to configure python in Geany?

#2. Compile (B) - Set production command (S)

After the following interface appears, select the drop-down box on the right side of the generation and select Set generation command

How to configure python in Geany?

2-How to configure python in Geany?

3. Perform compilation settings on the [Set Generation Command] interface

How to configure python in Geany?

1) , Python command setting (compile)

The path before -m is the path where python.exe is located - note that there are spaces, which can be obtained by searching for python on the installation disk (the same setting as in Path)

2) Execute command settings (Excute)

The path before %f is the path where python.exe is located - note that there are spaces, which can be obtained by searching for python on the installation disk (the same setting as in Path)

Note: In the English state, there are double quotes and the space before "%f". "%f" represents the path of the currently written py file. The .py file needs to be saved on the computer before it can be executed normally.

How to configure python in Geany?

4. Setting check

In main.py, execute the following command. No error is reported, indicating that the environment setting is successful

import pip
Copy after login

Congratulations on your installation and success.

Recommended related articles: 1.
Use geany to run python2.
How to configure environment variables in python
Related video recommendations: 1.
Little Turtle Zero Basics Learning Python Video Tutorial

The above is the detailed content of How to configure python in Geany?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template