How to set up a python environment

silencement
Release: 2020-07-10 17:25:08
Original
10410 people have browsed it

How to set up a python environment

1. Prepare the installation package

1) Download the python operating environment from the official python website (https://www.python.org/downloads/) , currently relatively stable is python-3.5.2

2) Download the latest version of the IDE from the pycharm official website (http://www.jetbrains.com/pycharm/download/#section=windows), which is provided by the official website There are three versions of mac, windows and linux. I downloaded pycharm-community-2016.2.3.exe

3) and downloaded the latest version of the database from the postgresql official website (https://www.postgresql.org /download/windows/ After opening the page, click Download the installer to enter the download page, then select the version and operating system, and then click download), I downloaded postgresql-9.6.5-1-windows-x64.exe

2. Install software

1) Install the python operating environment

Double-click python-3.5.2.exe

How to set up a python environment

## Generally use the automatic It is better to define the installation, otherwise the automatic installation will install the environment into the personal directory, which is sometimes very troublesome to find. In addition, mark the check mark in front of the second red box, otherwise you need to manually add the python installation path to the path of the Windows environment variable.

How to set up a python environment

How to set up a python environment

Manually modify the installation path here, you can install it to the C drive or the D drive

How to set up a python environment

Complete the installation

Then we open CMD and enter python in it, and then we can directly enter the encoding

We can enter print('hello world!') Let’s test python operation, as shown below

How to set up a python environment

The above is the detailed content of How to set up a python environment. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!