In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "how to install python3 and pip3 in centos". The content in the article is simple and clear, easy to learn and understand. Please follow the editor's train of thought to study and learn "how to install python3 and pip3 in centos".
Because work requires an environment where python is installed, it has not been installed before. If you encounter some pits, I would like to record them.
Centos comes with a 2.7 version, but because what I need is a 3.6 + version. So you need to install an extra version of python3. Python can be installed through yum, there is no need to download the source package to compile and install.
-Segmentation line-official start-
After entering the server, enter the
Python-V
You can see the current version of python
Version 2.7 does not meet my needs, so I need to install an extra version of 3.6 +
Install the epel source first
Yum install epel-release-y
Next, install python3, and I'll use python3.6 as an example here.
Yum install python36-y
After the installation is complete, you can use the
Python3-V
See the version of python3 after installation
-and then there is my lack of talent and learning.
I naively thought that after installing python3, pip would also lead to the latest version (forgive my naivety).
After I encountered a problem installing some modules with pip, I typed
Pip-V
It turns out that pip corresponds to version 2.7 of python.
Next, record the method of installing pip3
Yum install python36-setuptools-yeasy_install-3.6 pip
After entering the above two commands, you can check the version of pip3 to see if pip3 is installed successfully
You can see that pip3 specifies python3.6. Then you can install some modules with pip3.
Finally, post a picture of the two versions of the current server python and pip
Thank you for your reading, the above is the content of "how to install python3 and pip3 in centos". After the study of this article, I believe you have a deeper understanding of how to install python3 and pip3 in centos, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.