tencent cloud

All product documents
Cloud Object Storage
Last updated: 2024-01-06 16:15:34
Python
Last updated: 2024-01-06 16:15:34
This document describes how to install Python for different operating systems.

Using an Installation Package

1. Download a package

Go to the Python website to download an installation package according to your OS.
Note:
Python has dropped support for Python 2 since January 1, 2020. Therefore, you are advised to install Python 3.

2. Install the package

Install the downloaded package as instructed.
Note:
If you use Windows, check Add Python to environment variables.


3. Verify the installation

Run the following command in Terminal to view the Python version:
python -V
If the Python version is displayed, Python has been installed successfully.
Note:
If you use Windows, you may need to restart your computer after the installation.

4. Configure environment variables

In Windows, if “not recognized as an internal or external command” is reported in Terminal after the command above is run, right-click the Computer icon, click Properties > Advanced system settings > Environment Variables, and in the System variables area, click New to add the Python installation path:

Using a Package Manager

macOS

Install HomeBrew and use it to install Python:
brew install python

Ubuntu

Use the built-in Advanced Packaging Tool (APT) to install Python:
sudo apt-get install python

CentOS

Use the built-in Yellowdog Updater, Modified (YUM) to install Python:
sudo yum install -y python
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon