Set the box behind Execute under Execute commands to python3 "%f" įinally, make sure there are no errors in spaces and capitalization, and click OK.įourth: Back to the Geany editing interface, select the menu Build->Execute or the stand-alone Execute icon (this round) or directly press F5 to run the program you will see a terminal window showing the results of the program (if the program has no errors) ).įifth: If this process fails, please check whether the environment configuration is correct. Then in the pop-up dialog box, set the box behind Compile under Python commands to python3 -m py_compile "%f", Third: If there are multiple Python versions in the system, Geany must be configured for the environment (here, configure Python3 as an example):įirst select Build in the menu ->Set Build Commands Second: Enter python code in the current text py (the purpose is to tell Geany that this is a python file program, and in a better way Highlight the code) Geany commands (by default) run with a working directory that is the directory of the current file displayed in the edit area, you can change this in the 'working directory' column of the 'set build commands' dialog to make it a fixed location such as the directory where pythonbuild.py lives. Open it after you find it (for the convenience of future application, you can also find the Geany icon on the far left, right click and lock it here to create a shortcut).įirst: In Geany, select File->Save As, save the current file in the specified folder with the extension. Press the Super key (also called the Windows key) and search for Geany in the system. Note: If this command does not work, please refer to the instructions: Open the terminal (Terminal), execute the command: If you need to exit the current editor and return to the terminal, execute the command exit() or execute Crtl+D Enter $ python or $ python3 to view the installed version ģ. If you want to check the Python version in the system, follow the steps below:Ģ. ![]() The Linux system has installed Python by default (this article is based on Ubuntu 14.04).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |