Installation Of Python
Windows
Visit https://www.python.org and download Python for Windows.
Installation process is simple like every other application.
Guide for installing python is given below :
1. Open the installer
2. Check Add Python 3.6 to PATH and click on Customize Installation.
3. Click Next on Optional Features.
4. Change the install location to C:\Python rather than C:\Users\AppData\... and click on Next.
(You can check Install or All Users if you want to.)
5. Wait for installation to complete successfully.
After Python is installed, Open Start Menu and search for IDLE.
Linux
Using the Package Manager
1. If you are using Ubuntu Linux, at the command prompt type:
$ sudo apt-get install python3
2. If you are using Fedora, at the command prompt type:
$ sudo yum install python3
3. The most recent version of Python 3 will be downloaded and installed. To verify the installation, type:
$ Python
The Python prompt (>>>) will appear.
From source
You can install Python from its source code if you want to really customize the binary by setting certain options or flags during the build process.
2. Type the following commands to extract and install Python from its source:
$sudo tar xzf python-3.6.2.tar.xz
$./configure
$sudo make install
3. To verify the installation, in the terminal type:
$ Python3
The Python prompt (>>>) will appear.
Mac OS X
Using a wizard-based installer
1. Go to the Python website, https://www.python.org/ftp/python/3.6.2/python-3.6.2-macosx10.6.pkg and download the required version.
2. Run the downloaded file and follow the instructions in the installation wizard.
Using Homebrew
Homebrew is a package manager that lets you install, update, and uninstall packages from the command line on the Mac OS.
1. Homebrew depends on Apple’s Xcode package, so run the following command to install Xcode first:
$ xcode-select --install
2. Next, install Homebrew by following the instructions on their website, https://brew.sh/
3. After installing Homebrew, from the prompt in the terminal type the following command to install Python:
$ brew install python3
4. To verify the installation, type:
$ Python3
The Python prompt (>>>) will appear.
Other Platforms
You can install Python for other platforms such as MS-DOS, OS2 or Solaris from the Python website,https://www.python.org/download/other/




Comments
Post a Comment