Python Tutorial: How to Download
Python 2.7 on 64-bit Windows?
Python is a versatile programming language that has gained
immense popularity due to its simplicity and readability. While
Python 3 is the current version, some legacy applications still
require Python 2.7. This tutorial will guide you through the steps to
download and install Python 2.7 on a 64-bit Windows operating
system.
Step 1: Check Your Windows
Version
Before downloading Python 2.7, it is essential to confirm that your
Windows operating system is 64-bit. To check this:
Right-click on the Start button and select System.
Look for the System type entry. It should indicate whether your
system is 32-bit or 64-bit.
Step 2: Download Python 2.7
Once you have confirmed that your system is 64-bit, follow these
steps to download Python 2.7:
1. Open your web browser and navigate to the official Python
website: Python 2.7.18 Release. This is the last release of Python
2.7.
2. Scroll down to the section titled Files.
3. Locate the file named Windows x86-64 MSI installer. This is the
installer for 64-bit Windows systems.
4. Click on the link to start the download.
Step 3: Install Python 2.7
After the download is complete, you can proceed with the
installation:
1. Locate the downloaded file, usually found in
your Downloads folder.
2. Double-click the msi file to launch the installer.
3. Follow the prompts in the installation wizard. You can choose the
default settings, but make sure to check the box that says Add
Python to PATH. This will allow you to run Python from the
command line.
4. Click Install to begin the installation process.
5. Once the installation is complete, click Finish.
Step 4: Verify the Installation
To ensure that Python 2.7 has been installed correctly, you can
verify the installation by following these steps:
1. Open the Command Prompt by typing cmd in the Windows search
bar and pressing Enter.
2. In the Command Prompt, type the following command and
press Enter:
python --version
3. If Python 2.7 is installed correctly, you should see an output similar
to:
Python 2.7.18
Step 5: Install pip (Optional)
Pip is a package manager for Python that allows you to install
additional libraries and packages. To install pip for Python 2.7, follow
these steps:
1. Download the get-pip.py script from the official pip website: get-
pip.py.
2. Open the Command Prompt and navigate to the directory where you
downloaded get-pip.py.
3. Run the following command:
python get-pip.py
4. Once the installation is complete, you can verify pip installation by
typing:
pip --version
5. You should see an output indicating the version of pip installed.
Conclusion
Downloading and installing Python 2.7 on a 64-bit Windows system
is a straightforward process. By following the steps outlined in this
tutorial, you can set up Python 2.7 and begin working on your
projects. While Python 2.7 is no longer officially supported, it
remains a valuable tool for maintaining legacy applications
How to Install Scipy in Python on
Windows?
Last Updated : 13 Feb, 2024
Scipy is a python library that is useful in solving many mathematical
equations and algorithms. It is designed on the top of Numpy library that
gives more extension of finding scientific mathematical formulae like
Matrix Rank, Inverse, polynomial equations, LU Decomposition, etc. Using
its high-level functions will significantly reduce the complexity of the code
and helps in better analyzing the data.
In this article, we will look into various methods of installing Scipy library
on Windows.
Pre-requisites:
The only thing that you need for installing Scipy module on Windows are:
Python
PIP or Conda (depending upon user preference)
Installing Scipy on Windows:
For Conda Users:
If you want the installation to be done through conda, you can use the
below command:
conda install scipy
Type y for yes when prompted.
You will get a similar message once the installation is complete
Make sure you follow the best practices for installation using conda as:
Use an environment for installation rather than in the base environment
using the below command:
conda create -n my-env
conda activate my-env
Note: If your preferred method of installation is conda-forge, use the
below command:
conda config --env --add channels conda-forge
For PIP Users:
Users who prefer to use pip can use the below command to install Scipy
package on Windows:
pip install scipy
You will get a similar message once the installation is complete:
Note: As you can see in the above image, there are a couple of
dependencies that are not resolved. This can be resolved by upgrading
the PIP using the below command for proper functioning of Scipy library:
python --upgrade pip
pip install --use-feature=2020-resolver
Verifying Scipy Module Installation:
To verify if Scipy has been successfully installed in your system run the
below code in a python IDE of your choice:
Python3
import scipy
scipy.__version__
If successfully installed you will get the following output.
Installing Keras Library on Windows using PIP:
Users who prefer to use pip can use the below command to install the
Keras library on Windows:
pip install keras
You will get a similar message once the installation is complete:
Verifying Keras Installation on Windows using PIP:
To verify if Keras library has been successfully installed in your system
run the below command in your command prompt:
python -m pip show keras
You’ll get the below message if the installation is complete:
How to Install Python Tensorflow in
Windows?
Last Updated : 05 Sep, 2022
Tensorflow is a free and open-source software library used to do
computational mathematics to build machine learning models
more profoundly deep learning models. It is a product of Google
built by Google’s brain team, hence it provides a vast range of
operations performance with ease that is compatible with human
behavior for ML and DL. It can run on multiple CPUs and GPUs.
Features of Tensorflow:
Computational Framework – It is a platform that provides
huge computational framework at one place. In this,
computation is approached as a dataflow graph.
Mobile Deployment – It is an easy way to build projects with
mobile deployment
High Performance – Due to its ease and varying toolkits, it
gives high-performance user experience.
Downloading and Installation:
Tensorflow can be downloaded from its official
Website tensorflow.org and can be installed with the help of
following steps: Step 1: Click on Install on top navigation bar of
Tensorflow website.
Step 2: Before proceeding we need to get python environment.
Choose pip in the left side and go to python section and install
python environment to work on it.
Step 3: Python environment can be downloaded from python.org.
To install python on windows refer to: How to install Python on
Windows?
Step 4: To install Tensorflow, we need pip for python. Usually, pip
comes already installed if the python version is 3 or above. To
know more about pip installation please refer: How to install pip in
Windows? For all OS users check the pip section of TensorFlow as
shown in the following screenshot:
Tensorflow can also be downloaded for installation on different
OS:
Step 5: Creating a Tensorflow virtual environment
This can be done with the use of the following command:
pip install --user virtualenv
You can also create a virtual environment using Anaconda (refer
here) or its lightweight installer (without graphical user interface)
Miniconda (refer here)After successful installation by following
instructions provided on the official website (links provided
above), use this command to create a new virtual environment
using conda.
conda create -n virtualenv
This will create a conda environment named “virtualenv” with the
latest python version available installed on your system.
creating a new conda environment
If you want to install a specific python version, try the following:
conda create -n virtualenv python=3.7
creating environment with specific python version
Now, to activate the newly created environment, run
conda activate virtualenv
Now everything you install for your project will be installed inside
this environment and you will not face conflicting dependencies
with your other projects.
It is recommended that you create a new virtual environment for
every project so that you don’t run into setup, installation and
dependency issues.
Step 6: After setting up the virtual environment, use the
following command to install Tensorflow pip package:
pip install --upgrade tensorflow
Once installed you can import TensorFlow in your python
programming environment as you choose(here python IDE as
stated in step 5).
Level up your coding with DSA Python in 90 days! Master key
algorithms, solve complex problems, and prepare for top tech
interviews. Join the Three 90 Challenge—complete 90% of
the course in 90 days and earn a 90% refund. Start your
Python DSA journey today!