Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

remove python2 centos

#Set Default Version of Python
#If you have more than one version of Python installed on your CentOS 8, you may need to set the default version of Python. 
#Configuring the default version helps applications and programs that require a python command to navigate to the appropriate location.

#Set Python 3 or Python 2 as the system-wide python command.

#To assign Python 3 as the default version, use the command:

alternatives --set python /usr/bin/python3

#You can also set Python 2 as the unversioned python command:

alternatives --set python /usr/bin/python2

#You can also remove the unversioned command with:

alternatives --auto

#Uninstall Python on CentOS 8
#Use DNF to uninstall any Python version.

#To remove Python 3, run the command:

dnf remove python3

#The command uninstalls Python 3 and removes related dependencies. 
#Confirm you want to remove the listed packages by typing y and hit Enter.

#remove Python 3 from CentOS 8
#If you want to remove Python 2, use:

dnf remove python2

#Again, verify you want to remove the package with y and Enter.

#remove Python 2 from CentOS 8, Conclusion:

#This step-by-step tutorial shows you how simple it is to install Python 3 and Python 2 on CentOS 8. 
#It also includes instructions for setting the default Python version, as well as steps for removing Python from the system. Next, you can install Pip, a package manager for the Python.
Comment

remove python 2.7 centos 7

# As far as I know, python 2.7 cannot be removed from centos 7. 
Comment

PREVIOUS NEXT
Code Example
Python :: what is the size of cover in facebook 
Python :: get n largest values from 2D numpy array matrix 
Python :: double for in loop python 
Python :: how to convert tensorflow 1.15 model to tflite 
Python :: qr detector 
Python :: How to delete a file or folder in Python? 
Python :: set remove in python 
Python :: python re.sub() 
Python :: double for loop in list comprehension 
Python :: cv2 assertion failed 
Python :: print string in reverse order uing for loop python 
Python :: insert blank row in data frame 
Python :: if in python 
Python :: Python DateTime Class Syntax 
Python :: Async-Sync 
Python :: python check empty string 
Python :: convolution operation pytorch 
Python :: python append value to column 
Python :: import sentence transformers 
Python :: how to import data in python 
Python :: python add list 
Python :: UserWarning: X does not have valid feature names, but LinearRegression was fitted with feature names 
Python :: extend python 
Python :: remove all occurences 
Python :: Example of floor method in python 
Python :: rgb to hex python 
Python :: python environment variable 
Python :: watershed segmentation 
Python :: variables in python 
Python :: python copy vs deepcopy 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =