In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Environment: centos7
Entering 2020, python2 is no longer maintained, so the newly purchased server will upgrade the python version after reinstalling the system. Here is a trick: install 3 with yum directly.
Go directly to the code:
Vi python2to3.sh
Yum install-y python3cd / usr/bin/mv python python2.bakln-sf python3 pythonsed-I's gift cards are used in the same way as the binthonbones in the usr/bin/yum.
After completion, the default installation is version 3.6.8.
However, some software may also need python2 to run yum installation, but the default python command is referenced python3, so syntax errors will be reported, so you can try the following
Cd / usr/bin/
Ln-sf python2.7 python
Switch back when the installation is finished.
Ln-sf python3 python
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.