首页 > 系统相关 >CentOS 卸载 python

CentOS 卸载 python

时间:2023-11-02 13:07:01浏览次数:29  
标签:CentOS python 3.6 Python 卸载 rpm python3

卸载 python 2.7

rpm -qa|grep python2|xargs rpm -ev --allmatches --nodeps

whereis python2 |xargs rm -frv

-------------------

卸载 python3
rpm -qa|grep python3|xargs rpm -ev --allmatches --nodeps       卸载pyhton3
whereis python3 |xargs rm -frv           删除所有残余文件
成功卸载!
whereis   python       查看现有安装的python

 -------------------

The system python on CentOS 7 must be the 2.7 version that we ship. Must. 
You cannot replace the system python with a different one. 
If you need a newer python then multiple places ship a python3 stack that installs in parallel to the system 2.7 that we ship. 
No-one yet ships 3.8 as it's too new. There are python 3.6 packages in the CentOS 7.7 base and updates repos. 
Use those. 
They are supported and are the same versions that are in CentOS 8 so you know things written on one should work on the other.

 -------------------

Centos 7.8

Python 3 is now available. Installing the python3 package gives you the Python 3.6 interpreter。Python 3 可用,安装python3将会提供Python 3.6解释器。

---------------------------------

Centos 8

Python 3.6



标签:CentOS,python,3.6,Python,卸载,rpm,python3
From: https://blog.51cto.com/emanlee/8143857

相关文章

  • linux CentOS ModuleNotFoundError: No module named '_ctypes
    Yesthatworkedforme,ImadesurethesepackagesareinstalledonmyCentos7:sudoyuminstall-yzlib-develbzip2-developenssl-develncurses-develsqlite-develreadline-develtk-develgdbm-develdb4-devellibpcap-develxz-develexpat-devellibffi-dev......
  • centos7 python2和python3共存
     ln-s/usr/local/python3/bin/python3/usr/bin/python #测试[root@operationbin]#pip3-Vpip18.1from/usr/local/python3/lib/python3.6/site-packages/pip(python3.6)#使用[root@operationbin]#pip3install包名或者[root@operationbin]#pyth......
  • python爬虫数据存进mysql数据库
    一、安装mysql和mysqlworkbench我已经在电脑上安装了最新的mysql8.2.0,配置好环境变量,在命令提示符中以管理员的身份初始化并成功启动mysql数据库。前期因为以前的mysql没有卸载干净,导致mysql一直无法启动服务。所以一定要保证以前的mysql卸载干净才能重新安装,以前没有安装过的......
  • python题目:把JSON字符串里面的数据进行替换【杭州多测师_王sir】
    name ,时间戳,value这三个值要变 "tags":[{"values":[{"value": 43.6525,"quality": 192,"timestamp": 00}],"name": "/system/Template_2/Instance_8/system/Property_10",“type”: 12}]} import randomimp......
  • python之unicode和encode
    Python中有两种默认的字符串:str和unicode。在Python中一定要注意区分“Unicode字符串”和“unicode对象”的区别。后面所有的“unicode字符串”指的都是python里的“unicode对象”。事实上在Python中并没有“Unicode字符串”这样的东西,只有“unicode”对象。一个传统意义上的un......
  • centos 7 下通过 conda 安装 cuda pytorch
    先查看自己的linux上显卡型号:#lspci|grep-invidia04:00.0VGAcompatiblecontroller:NVIDIACorporationGP102[GeForceGTX1080Ti](reva1)04:00.1Audiodevice:NVIDIACorporationGP102HDMIAudioController(reva1)查看是否有程序占用(如果存在占用,请停掉该程序......
  • python 中文编码
      当py文件的编码为utf-8的时候。代码中需要添加#coding:utf-8。脚本中的中文,在运行过程不会报错。#-*-coding:utf-8-*-  当py文件设置为utf-8,而显示设置代码编码为#coding:936。则会出现ncodingproblem:cp936withBOM的错。这个时候,将py文件的编码改为ANSI即可。 ......
  • python中setup.py怎么使用(部署工具)
    `setup.py`是一个用于构建和安装Python包的脚本。它是用于打包、发布和分发你的Python项目的关键文件之一。以下是使用`setup.py`的一般步骤:1.创建`setup.py`文件:在项目的根目录下创建一个名为`setup.py`的文本文件。2.导入`setuptools`模块:在`setup.py`文件......
  • python ASCII字符的实用程序 curses.ascii 库的安装使用
    pythonASCII字符的实用程序curses.ascii库的安装使用https://www.lfd.uci.edu/~gohlke/pythonlibs/下载对自己电脑配置的WHL文件,并安装,比如我用的是curses‑2.2+utf8‑cp27‑cp27m‑win_amd64.whlpipinstallcurses‑2.2+utf8‑cp27‑cp27m‑win_amd64.whlPython代码中......
  • Effective Python 编写高质量Python代码的59个有效方法----读书笔记
    第二条遵循PETP8风格指南PEP8指南PythonEnhancementProposal#8使用space(空格)来表示缩进,而不要用tab(制表符)和与法相关的每一层缩进都用4个空格来表示每行的字符数不应超过79对于占据多行的长表达式来说,除了首行之外的其余各行都应该在通常的缩进级别至上再加4个空格......