Hostwinds Seattle VPS in the United States, how to install CentOS 8 system Python3 tutorial

888u

Last update at :2024-02-24,Edit by888u

Hostwinds VPS is still used by many users in mainland China, mainly because it can change IP for free, and the access speed of the Seattle data center in mainland China is still good. In the first few months of this year, Hostwinds also launched Chinese-specific domain names and Chinese web pages are also more convenient for mainland Chinese users to purchase. This article records the method of installing Python 3 on the CentOS 8 operating system on Hostwinds VPS. In comparison, it is more convenient to install things on the Ubuntu system. There are currently two ways to install Python on CentOS 8. The first is to install it through the dnf package management tool, which seems to only be able to install Python 3.6. The second is to compile and install it yourself. You can install the latest Python 3.9. You can install it according to your own needs. Choose according to your needs.

How is Hostwinds? Is Hostwinds good? Hostwinds is an American hosting provider founded in 2010. Mainland Chinese webmasters mostly use Hostwinds American cloud hosting VPS products. Because Hostwinds US cloud host VPS uses SSD hard drives, and all plans have global CDN acceleration functions, they are also favored by users. Nowadays, Hostwinds hosting provider also provides a wide range of product solutions, including virtual hosting, cloud hosting, VPS hosting, independent hosting, etc. Currently, Hostwinds mainly has three data centers in Dallas, Seattle and Amsterdam. Among them, the Seattle data center has faster access speed in mainland China. Support Alipay, credit card, and Paypal payment.

Preparations before installation

1. Log in to the SSH connection. This should go without saying, everyone knows it.

2. Update system

sudo yum update

CentOS 8 installation Python 3.9 tutorial

1. Download the necessary dependency packages

sudo dnf groupinstall 'development tools' sudo dnf install wget openssl-devel bzip2-devel libffi-devel

2. Download the Python 3.9 installation package

sudo curl https://www.python.org/ftp/python/3.9.1/Python-3.9.1.tgz -O

3. Unzip the Python 3.9 installation package

tar -xvf Python-3.9.1.tgz

4. Enter the Python 3.9 file directory

cdPython-3.9.1

5. Run the configuration script and compilation script to install

sudo ./configure --enable-optimizations sudo make install

Note:

If Python has been installed in /usr/bin/python or /usr/bin/python3, you should use sudo make altinstall to install it.

6. Check whether the installation is successful

python3 -V

If the Python version number is successfully output, the installation is successful:

Python 3.9.1

CentOS 8 installation Python 3.6 tutorial

The above process of installing Python 3.9 is actually a bit cumbersome, because the current dnf of CentOS 8 only supports Python 3.6. If we only needed Python 3.6, the problem would be much simpler.

The following describes how to install Python 3.6.

1. Directly use the dnf package management tool to install

sudo dnf install python3

2. Check whether the installation is successful

python3 -V

Yes, it's that simple.

Note:

If Python 3.9 is installed through compilation, the installation path is /usr/local/bin/python3. If Python 3 is installed through CentOS dnf, the installation path is /usr/bin/python3.

CentOS 8 installation Python 2 tutorial

Finally, let me briefly talk about how to install Python 2. At present, Python 2 has officially stopped supporting it. In fact, it is not recommended to continue using it. You can still install it if necessary.

Python 2 installation is also very simple, just one command:

sudo dnf install python2

Hostwinds recommends the entry-level plan for beginners as follows. After the recent price adjustment, the price of the hosting plan has increased a lot compared to before. In fact, the price has not changed much. It can only be said that the discount is not as big as before.

CPU Memory harddisk flow bandwidth Hosted type (after 25% discount) Buy Unmanaged Buy
1 core 1GB 30GB 1TB 1Gbps $8.24/month Buy $4.99/month Buy
1 core 2GB 50GB 2TB 1Gbps $16.49/month Buy $9.99/month Buy
2 cores 4GB 75GB 2TB 1Gbps $29.99/month Buy $18.99/month Buy
2 cores 6GB 100GB 2TB 1Gbps $38.24/month Buy $28.99/month Buy
4 cores 8GB 150GB 3TB 1Gbps $59.99/month Buy $38.99 per month Buy
4 cores 12GB 200GB 4TB 1Gbps $74.99/month Buy $49.99/month Buy
6 cores 16GB 300GB 5TB 1Gbps $110.24/month Buy $76.99/month Buy
8 cores 32GB 400GB 6TB 1Gbps $168.74/month Buy $124.99/month Buy
12 cores 64GB 500GB 8TB 1Gbps $274.49/month Buy $214.99/month Buy
16 cores 96GB 750GB 9TB 1Gbps $395.24/month Buy $328.99/month Buy

Recommended site searches: server rental, online store virtual host, registration and cancellation, virtual host evaluation, vps foreign server, Dalian virtual host, Hong Kong server rental 99idc, cheap virtual host Chinese IP segment, which Hong Kong space is better,

p>

Hostwinds Seattle VPS in the United States, how to install CentOS 8 system Python3 tutorial

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码