Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Install Python2 and Python3 on your computer at the same time

2025-04-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

First, install Python2

Go to Python's website https://www.python.org/ to download the installation files of Python

1.2.Click the installation file and click next all the time

To distinguish between Python2 and Python3, rename the python.exe file in this directory to python2.exe, as shown in the following screenshot:

1.3.Adding the environment variable of Python2

Computer-properties-advanced system settings-advanced-environment variables-system variables

Find Path and add it at the end; C:\ Python27

1.4. cmd, enter Python2. If the prompt in the following figure appears, the Python2 installation is successful.

Second, install Python3

The installation principle and environment variable settings are the same as python2, but you need to change the python.exe under the installation directory to python3.exe.

Third, install module 1. Install the pip module

1. Download address: https://pypi.python.org/pypi/pip

two。 Decompress after download

Enter the extracted directory in 3.cmd and execute the installation command python2 setup.py install. After the installation is completed, there will be the word "Finished".

two。 Install MySQL-python-1.2.5.win32-py2.7.exe

1. Download address: http://www.codegood.com/archives/129

Download the installation package as many bits as the python is installed, otherwise an error will be reported (Python Version 2.7required which was not found in the registry)

two。 Click install directly.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report