This article explains how to install Python version 3.5 and pip on Windows

Hello everyone. I'm Saito, an infrastructure engineer.
Today, I'll show you how to install Python version 3.5.

Python is usually used on servers, but the Python pre-installed on servers is often an older version

So let's go ahead and install Python ourselves

Installation Instructions

On Windows, installation is done using an installer, but
there are several pitfalls when using the installed commands.
This article aims to create an environment where you can execute the python and pip commands from the command prompt.

We will explain the key points below

1. Install Python

You can use Python by downloading the installer from the URL below and following the instructions.
https://www.python.org/downloads/
python_install

2. Decide on the installation location

This time,C:\Users\beyondunderPython35we installed
Make sure the installation directory is in a location that doesn't require administrator privileges.
"C:\Program Files" may result in permission issues preventing you from using commands.

3. Setting the Path

Set the path to the directory created by the installer

C:UsersbeyondPython35 C:UsersbeyondPython35Scripts

the Control Panel or
Rapid Environment EditorYou can use

4. Install pip

Download the following Python file:
https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py

the downloaded file (ez_setup.pyrun

> chdir C:UsersbeyondDownloads > ls ez_setup.py > python ez_setup.py

Once you have run the downloaded file, it's time to prepare pip

> easy_install.exe pip

This completes the environment setup

To check the version, use the following options:

> python -V > pip -V

Installing packages with pip

If you need any modules, try installing packages using pip as needed.
The pip command is used as follows:

> pip install --upgrade pip > pip install<package>

Let's try installing the following packages with pip:

> pip install virtualenv > pip install pip-tools > pip install ipython > pip install wheel

To see a list of installed packages, use the following command:

> pip freeze

Precautions when installing

If a C/C++ compiler is not installed on Windows,
you may encounter problems such as pip not working correctly depending on the package.
In that case, you will get an error message requesting you to install Visual C++.
For Python 2.7,thisplugin can solve the problem.
For those who want to install without a compiler,

https://pypi.python.org/pypi/

pre-compiled (.whl) file available.
mentioned earlierthe wheelis installed.

> pip install wheel

Finally, let's try installing using wheel.
For example, let's say we want to install the following packages.

https://pypi.python.org/pypi/ScalaFunctional/0.5.0

scala

from hereScalaFunctional-0.5.0-py2.py3-none-any.whl, install the
go to the download location and run pip.

> chdir C:UsersbeyondDownloads > ls ez_setup.py ScalaFunctional-0.5.0-py2.py3-none-any.whl > pip install ScalaFunctional-0.5.0-py2.py3-none-any.whl

The installation is now complete. Congratulations!

Next, simply type "python" in the command prompt, and Python will start.
Installed packagesimport can then be used in your program by typing

> python Python 3.5.0a3 (v3.5.0a3:82656e28b5e5, Mar 30 2015, 00:12:00) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import this

Please try installing Python and pip using the method we introduced. Have a good import life!

 

Added 2020/03/09

This articlecourseduck.comwas featured on

We have a variety of content that will help you learn Python for free, so please take a look

The Best Courses to Learn Python in 2020

https://www.courseduck.com/programming/python/

If you want to talk to a cloud professional

Since our founding, Beyond has used the technical capabilities we have cultivated as a multi-cloud integrator and managed service provider (MSP) to design, build, and migrate systems using a variety of cloud/server platforms, including AWS, GCP, Azure, and Oracle Cloud

We provide a custom-made cloud/server environment optimized for our customers based on the specifications and functions of the systems and applications they require, so if you are interested in the cloud, please feel free to contact us

● Cloud/Server design and construction
● Cloud/Server migration
● Cloud/Server operation, maintenance, and monitoring (24 hours a day, 365 days a year)

If you found this article helpful,please give it a "Like"!
0
Loading...
0 votes, average: 0.00 / 10
9,268
X Facebook Hatena Bookmark pocket

The person who wrote this article

About the author