PythonPython3java
 

Python Environmental build

In this chapter we will show you how to build a Python development environment locally.

Python can be applied to multiple platforms including Linux and Mac OS X.

You can enter the "python" command in the terminal window to see if Python and Python installations are installed locally.

  • Unix (Solaris, Linux, FreeBSD, AIX, HP/UX, SunOS, IRIX, etc.)
  • Win 9x/NT/2000
  • Macintosh (Intel, PPC, 68K)
  • OS/2
  • DOS (multiple DOS versions)
  • PalmOS
  • Nokia mobile phone
  • Windows CE
  • Acorn/RISC OS
  • BeOS
  • Amiga
  • VMS/OpenVMS
  • QNX
  • VxWorks
  • Psion
  • Python can also be ported to Java and .NET virtual machines.


Python Download

Python download

Python's latest source code, binary documentation, news, etc. can be viewed on Python's official website:

Python official website: https://www.python.org/

>

You can download Python documentation from the links below, and you can download documents in formats such as HTML, PDF, and PostScript.

Python documentation download address: https://www.python.org/doc/



Python installation

Python has been ported to many platforms (it has been modified to work on different platforms).

You need to download the binary code for your platform and install Python.

If your platform's binary code is not available, you will need to manually compile the source code using the C compiler.

Compiled source code, with more optional features, provides more flexibility for python installations.

The following are the download addresses for each platform installation package:

<

Here are the ways to install Python on different platforms:

Unix & Linux Platform Installation Python:

Here are the simple steps to install Python on Unix & Linux:

  • Open the web browser to access https://www.python.org/downloads /source/
  • Select a source tarball for Unix/Linux.
  • Download and unzip the archive.
  • If you need to customize some options to modify Modules/Setup
  • Execute ./configure script
  • make
  • make install

After doing this, Python will be installed in the /usr/local/bin directory, the Python library will be installed in /usr/local/lib/pythonXX, and XX will be the version number of Python you are using.

Window platform installation Python:

The following are simple steps to install Python on the Window platform:

  • Open a web browser to access https://www.python. Org/downloads/windows/

  • Select the Window Platform installation package in the download list. The package format is: python-XYZ.msi file, and XYZ is the version number you want to install.
  • To use the installer python-XYZ.msi, Windows systems must support Microsoft Installer 2.0 for use. Just save the installation file to your local computer and run it to see if your machine supports MSI. MSI is already available on Windows XP and later, and many older machines can also install MSI.

    elect according to your computer configuration. The above option is the windows="" 64="" installation package.

    according to your computer configuration, the above selection is >
  • After downloading, double-click the download package to enter the Python installation wizard. The installation is very simple. You only need to use the default settings and click "Next" until the installation is complete.

MAC Platform Installation Python:

The MAC system is usually self-contained with the Python 2.x version of the environment, you can also link https://www.python.org/downloads/mac-osx/ to download the latest version of the installation.

Python download

Python's latest source code, binary documentation, news, etc. can be viewed on Python's official website:

Python official website: https://www.python.org/

>

You can download Python documentation from the links below, and you can download documents in formats such as HTML, PDF, and PostScript.

Python documentation download address: https://www.python.org/doc/



Python installation

Python has been ported to many platforms (it has been modified to work on different platforms).

You need to download the binary code for your platform and install Python.

If your platform's binary code is not available, you will need to manually compile the source code using the C compiler.

Compiled source code, with more optional features, provides more flexibility for python installations.

The following are the download addresses for each platform installation package:

Here are the ways to install Python on different platforms:

Unix & Linux Platform Installation Python:

Here are the simple steps to install Python on Unix & Linux:

  • Open the web browser to access https://www.python.org/downloads /source/
  • Select a source tarball for Unix/Linux.
  • Download and unzip the archive.
  • If you need to customize some options to modify Modules/Setup
  • Execute ./configure script
  • make
  • make install

After doing this, Python will be installed in the /usr/local/bin directory, the Python library will be installed in /usr/local/lib/pythonXX, and XX will be the version number of Python you are using.

Window platform installation Python:

The following are simple steps to install Python on the Window platform:

  • Open a web browser to access https://www.python. Org/downloads/windows/

  • Select the Window Platform installation package in the download list. The package format is: python-XYZ.msi file, and XYZ is the version number you want to install.
  • To use the installer python-XYZ.msi, Windows systems must support Microsoft Installer 2.0 for use. Just save the installation file to your local computer and run it to see if your machine supports MSI. MSI is already available on Windows XP and later, and many older machines can also install MSI.

    according to your computer configuration, the above selection is >
  • After downloading, double-click the download package to enter the Python installation wizard. The installation is very simple. You only need to use the default settings and click "Next" until the installation is complete.

MAC Platform Installation Python:

The MAC system is usually self-contained with the Python 2.x version of the environment, you can also link https://www.python.org/downloads/mac-osx/ to download the latest version of the installation.

...

2, command line script

In your application, you can execute Python scripts on the command line by introducing an interpreter, as follows:

$ python script.py # Unix/Linux

or

C:>python script.py # Windows/DOS

Note: When executing a script, check if the script has executable permissions.

3, Integrated Development Environment (IDE: Integrated Development Environment): PyCharm

PyCharm is a Python IDE built by JetBrains that supports macOS, Windows, and Linux.

PyCharm Features: Debugging, syntax highlighting, Project management, code jumping, smart prompting, auto-completion, unit testing, version control...

PyCharm Download: https://www.jetbrains.com/pycharm/download/

Before continuing with the next chapter, make sure your environment is set up successfully. If you are not able to build the right environment then you can get help from your system administrator.

The examples given in the following sections have been tested in the Python 2.7.6 version.


Running Python programs in Cloud Studio

Because Python is cross-platform, it runs on Windows, Mac, and various Linux/Unix systems. Writing Python programs on Windows is also possible on Linux.

To start learning Python programming, you must first install Python on your computer. Once installed, you'll get a Python interpreter (which is responsible for running Python programs), a command-line interactive environment, and a simple integrated development environment.

Or recommend using the Tencent Cloud Developer Platform, an online cloud development tool. It provides a native online Linux command interactive terminal environment, a Python runtime interpreter, and an online text editor. You can create Python files directly on your workstation and run your Python programs in Cloud Studio. Then you can skip the rest of this section to install the Python runtime environment and the integrated development environment.

If you have any questions, you can check out help documentation

Now CODING is hosting a [My Favorite Cloud Studio Plugin Selection Contest] based on the Cloud Studio workspace. Go to the event website: https://studio.qcloud.coding. Net/campaign/favorite-plugins/index for more event information.






welookups is optimized for learning.© welookups 2018 -
All Right Reserved and you agree to have read and accepted our term and condition