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 :: how to change icon in pygame 
Python :: classes in python with self parameter 
Python :: from sklearn.externals import joblib instead use..... 
Python :: python element wise multiplication list 
Python :: dropping columns in pandas 
Python :: pipenv 
Python :: python how to add picture to label with tkinter 
Python :: pandas conditional replace values in a series 
Python :: How to get all links from a google search using python 
Python :: print python 
Python :: how to import data from csv to jupyter notebook 
Python :: calculate integral python 
Python :: python execute file 
Python :: how to launch an application using python 
Python :: how to check if index is out of range python 
Python :: iqr in python 
Python :: find python path cmd 
Python :: How to Add R to Jupyter Notebook 
Python :: python diamond 
Python :: how to get discord username nextcord interactions 
Python :: pandas replace values with only whitespace to null 
Python :: How to get current CPU and RAM usage in Python? 
Python :: psyche 
Python :: python read string from file 
Python :: get date and time formatted python 
Python :: python fernet 
Python :: remove columns that contain certain names in pandas 
Python :: python code to remove vowels from a string 
Python :: dataframe fillna with 0 
Python :: how to count range in django template 
ADD CONTENT
Topic
Content
Source link
Name
6+1 =