
- #How to install python linux command line how to#
- #How to install python linux command line software#
- #How to install python linux command line download#
In the Terminal window issue the command idle3.Ĭlick on the Options → Configure IDLE menu item.Ĭlick on the Open Edit Window radio button. You should perform one more step before creating your first program: configure the IDLE programming environment.
#How to install python linux command line software#
So far you've downloaded and installed all of the software that you'll need. If Python generates no error messages, then you have installed the booksite library properly. In the terminal window issue the python3 command.Īt the Python > prompt, type the statement import stdio followed by the Enter key. Perform these steps to test your installation of the booksite library: The computer copies the files defining the booksite modules to a directory where Python can find them, and writes status messages to your terminal window to indicate its progress. Issue the python3 setup.py install -user command. Make sure that a file named setup.py is in your working directory. Issue the ls command to display the names of all files in your working directory. command changes your working directory to the "parent" of the current working directory.) In the terminal window issue the cd Downloads command to change your working directory to /home/ yourusername/Downloads, and then issue the cd introcs-1.0 command to change your working directory to /home/ yourusername/Downloads/introcs-1.0. Initially the working directory is /home/ yourusername.
In your file manager, double click on the /home/ yourusername/Downloads/introcs-1.0.zip file to unzip the file, thus creating a directory named /home/ yourusername/Downloads/introcs-1.0.Īt any time the terminal application has a working directory.
#How to install python linux command line download#
Use your Web browser to download this introcs-1.0.zip file to your /home/ yourusername/Downloads directory. Perform these steps to download and install the booksite library: Close the IDLE window.ĭownloading and Installing the Booksite Library If an IDLE window appears, then you have installed IDLE properly.
In the Terminal window issue the command idle3. If Python generates no error messages, then you have installed Pygame properly.Īt the Python > prompt, type exit() followed by the Enter key to exit Python. If Python generates no error messages, then you have installed NumPy properly.Īt the Python > prompt, type the statement import pygame followed by the Enter key. If Python generates no error messages, then you have installed Tkinter properly.Īt the Python > prompt, type the statement import numpy followed by the Enter key. If you see that output, then your installation of Python was successful.Īt the Python > prompt, type the statement import tkinter followed by the Enter key. Type "help", "copyright", "credits" or "license" for more information. Perform these steps to test your installations: Python3 -m pip install -U setuptools -user That command downloads and installs PyGame via pip, the Python-specific package manager.įollow-up to the previous note: An alternative installation strategy is to use your package manager to install only the python-3, python3-tk, idle3, and python3-pip packages, and then use pip to install the others by issuing these commands in a terminal window: Then open a terminal window and issue the python3 -m pip install -U pygame -user command. If your package manager doesn't offer python3-pygame, then first use your package manager to install all of the other required packages. Note: It's likely that your package manager will offer all of the required packages, with the possible exception of python3-pygame. The package names may vary slightly across Linux distributions. Using your package manager (for example, Synaptic), download and install these packages: python3, python3-pip, python3-tk, python3-numpy, python3-pygame, python3-setuptools, and idle3. The terminal application that is bundled with your Linux distribution.ĭownloading and Installing Python, Tkinter, NumPy, Pygame, and setuptools. You also will need the Python setuptools library to install the booksite library. The booksite library, that is, a set of modules that we developed specifically to support this booksite. The Tkinter, NumPy, and Pygame libraries, which are used by the booksite programs that do graphics or audio processing. IDLE, the Python Integrated Deve Lopment Environment. Python, that is, a Python compiler/interpreter. The Python programming environment required by this booksite consists of: All of the software is freely available on the Web. #How to install python linux command line how to#
This page tells you how to setup a Python programming environment for your Linux computer and provides a step-by-step guide for creating and running a simple "Hello, world" Python program.