Home Topics Pagoda Panel How to solve the problem that Pagoda cannot be run after installing python3

How to solve the problem that Pagoda cannot be run after installing python3

Dec 07, 2020 pm 01:51 PM
python3 pagoda

The following tutorial column of Pagoda will introduce to you the solution to the problem that Pagoda cannot run after installing python3. I hope it will be helpful to friends in need!

How to solve the problem that Pagoda cannot be run after installing python3

Solution to Pagoda that cannot be run after installing python3

First of all, many friends in the forum said that their Linux The system needs to install python3, so Xiaoqiang is here to teach you an installation environment that can use both python3 and python2.

I originally came up with a script, but thinking about how to support so many versions, I panicked a little .

Then install a python3 first. My environment is Centos7.4 64-bit. Next time I will release an Ubuntu one. Anyway, it is almost the same for now and only supports Centos for the time being.

After installing the pagoda The gcc make environment is already installed. No more introduction here. Let’s get straight to the point

1. Download the python installation package

wget https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tgz
Copy after login

2. Unzip

  tar -xzvf Python-3.6.0.tgz
Copy after login

3. Enter the path to the decompressed installation package:

  cd Python-3.6.0
Copy after login

4. Compile the installation package, specify the installation path, and execute the installation command:

Note: The prefix parameter is used to specify that Python is installed in a new directory to prevent overwriting the python installed by default on the system

./configure --prefix=/usr/local/python36   
make && make install
Copy after login

5. Establish a soft link (python3 environment variable)

ln -s /usr/local/python36/bin/python3.6 /usr/bin/python3
Copy after login

You can use python3 by running python3 directly

[root@Rserver-1 Python-3.6.0]# python3
Python 3.6.0 (default, May 25 2017, 11:39:00)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-18)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>>
>>>
>>>
Copy after login

If you accidentally set python3 as the default py, the solution is as follows:

wget http://103.224.251.67/install/ext/python_check.sh && sh python_check.sh
Copy after login

For more related technical articles, please visit the Pagoda Paneltutorial column!

The above is the detailed content of How to solve the problem that Pagoda cannot be run after installing python3. For more information, please follow other related articles on the PHP Chinese website!

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to perform website performance stress testing and tuning through the Pagoda Panel How to perform website performance stress testing and tuning through the Pagoda Panel Jun 21, 2023 pm 01:31 PM

With the rapid development of the Internet, website performance has an increasing impact on user experience and SEO rankings. In order to improve the performance of our website, we need to perform performance stress testing and tuning to locate problems and optimize them. As a popular service management panel, Pagoda Panel provides convenient and simple performance stress testing and tuning tools. The following will introduce how to perform website performance stress testing and tuning through the Pagoda Panel. 1. Performance stress testing Performance stress testing is to test the load capacity and response speed of the website by simulating user access. In the Pagoda panel, we can

Can Pagoda Panel deploy Go language projects? Can Pagoda Panel deploy Go language projects? Mar 23, 2024 pm 06:54 PM

Title: How does the Pagoda panel deploy Go language projects? In today's Internet era, Go language is favored by more and more developers as an efficient, concise and powerful programming language with strong concurrency performance. As a powerful server management tool, Pagoda Panel provides convenient interface operations and various automated deployment functions. So, can the Pagoda panel deploy Go language projects? The answer is yes. Next, we will explain in detail how to deploy Go language projects on the Pagoda panel and provide specific code examples. At first, we

Pagoda PHP version switching: Interpretation of detailed operation steps Pagoda PHP version switching: Interpretation of detailed operation steps Mar 04, 2024 pm 05:48 PM

Pagoda PHP version switching: Interpretation of detailed operation steps, specific code examples are required. With the continuous development of Internet technology, website development often involves the use of different versions of PHP. Pagoda Panel is a simple and easy-to-use server management software that can help users quickly build and manage server environments. In the process of website development, sometimes it is necessary to switch the PHP version to adapt to different needs. This article will explain in detail how to switch the PHP version in the Pagoda panel, and give specific operating steps and code examples. Step 1: Log in to Pagoda Noodles

Must-read for Pagoda Linux: PHP5.2.0 version installation tips Must-read for Pagoda Linux: PHP5.2.0 version installation tips Mar 07, 2024 pm 12:33 PM

Pagoda Linux must-read: PHP5.2.0 version installation tips In the process of using the Pagoda Linux panel to build a website, some old versions of the PHP environment may be required, such as PHP5.2.0 version. This article will introduce how to install PHP5.2.0 version on the Pagoda Linux panel, and provide specific code examples to help readers quickly complete the installation process. 1. Install PHP5.2.0 version Step 1: Enter the Pagoda Linux panel. First, enter your server IP address in the browser.

How to switch between different versions when installing PHP in Pagoda How to switch between different versions when installing PHP in Pagoda Jun 19, 2023 am 11:18 AM

The method for installing PHP in Pagoda and switching between versions is: 1. Click "My Website" on the home page of Pagoda Panel; 2. Find the corresponding website and click the "Settings" button on the right; 3. Click "Apache/Nginx" on the left "tab, you can see the PHP version currently in use; 4. Click the "Switch" button behind the PHP version and select the version you want to switch; 5. Restart the relevant services.

How to install pip in python3 How to install pip in python3 Dec 20, 2023 pm 05:42 PM

Installation steps: 1. Make sure that Python3 has been installed and can be accessed through the command line; 2. Open the terminal and enter the "python3 -m ensurepip --upgrade" command to install pip; 3. Download the pip installation package from the official Python website; 4. Extract the downloaded pip installation package into a directory; 5. Open the terminal and navigate to the decompressed pip directory; 6. Run the "python3 setup.py install" command to install pip.

Pagoda Linux Tutorial: Detailed steps to install PHP5.2.0 Pagoda Linux Tutorial: Detailed steps to install PHP5.2.0 Mar 06, 2024 pm 02:27 PM

In this article, I will introduce in detail the steps on how to install PHP5.2.0 version on the Pagoda panel, including specific code examples. Although PHP5.2.0 is relatively old, there are still some projects with special needs that need to use this version. Hope this tutorial is helpful to everyone. In the process of using the Pagoda Linux panel, sometimes we encounter situations where we need to install PHP5.2.0. In this tutorial, I will introduce you in detail how to install PHP5 on the Pagoda panel.

One click to get it done! Guide to installing PHP5.2.0 on Pagoda Linux One click to get it done! Guide to installing PHP5.2.0 on Pagoda Linux Mar 06, 2024 pm 04:33 PM

Title: One click to get it done! Guide to installing PHP5.2.0 on Pagoda Linux In the current Internet era, website development is inseparable from PHP. The PHP5.2.0 version is outdated compared to the current version, but sometimes we still need to install the PHP5.2.0 version on the Pagoda panel, perhaps for compatibility with some old projects or requirements. In this article, we will introduce how to install PHP5.2.0 on Pagoda Linux with one click. We hope it will be helpful to you. step one

See all articles