In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
This article introduces the knowledge about "how to install python in ubuntu server". In the actual case operation process, many people will encounter such difficulties. Next, let Xiaobian lead you to learn how to deal with these situations! I hope you can read carefully and learn something!
What does Python mean?
Python is a cross-platform, interpretable, compilable, interactive, object-oriented scripting language. It was originally designed to write automation scripts. As versions continue to be updated and new features added, it is often used to develop standalone projects and large projects.
Check the current Python version.
$Python version 2, upgrade to Python version 3.X
$ sudo add-apt-repository PPA : fk rull/dead snakes #Add Source
$ sudoapt-getupdate #Update source list for latest version
$ sudoapt-getinstallpython3 #Install using apt-get 3. After installation, change the system environment. There are two options.
(1)Case 1:
Add the following statement to ~/using an alias. bashrc or ~/. bash _ aliases
aliaspython=python 3 Note: Switch back to python2 environment
Aliaspython=python2 case 2, directly change the version direction:
(1)Check the current default execution environment version. If the entry does not contain python, it can be skipped.
Android @ local :/usr/local/bin $ ls
Apktoolpython(2) Remove the current default python environment script
Android @ local :/usr/local/bin $ sudorm/usr/local/bin/python
Android @ local :/usr/local/bin $ ls
Apktoolaptool.jar (3) View the installed python versions contained in/usr/bin/path.
Ls/usr/bin/(4) Switch/usr/bin/
Android @ local :/usr/local/bin $ sudoln-s/usr/bin/python 3/usr/local/bin/python note : Switch back to python2 environment
Android @ local :/usr/local/bin $ sudo
ln-s/usr/bin/python 2/usr/local/bin/python Other cases:
If you encounter other issues and need to resolve them, download again:
sudoapt-get
install-reinstall python-minimum
sudoapt-get
"How to install python in ubuntu server" content is introduced here, thank you for reading. If you want to know more about industry-related knowledge, you can pay attention to the website. Xiaobian will output more high-quality practical articles for everyone!
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.