当前位置:首页 » 编程语言 » linux卸载python27

linux卸载python27

发布时间: 2022-08-03 09:01:09

1. 请教,ubuntu10.04下,如何卸载python2.7.8

代码:
$ ./configure --prefix=/usr/include
$ make
$ sudo checkinstall

然后,python2.7文件夹出现在/usr/include/bin、/usr/include/liclude和/usr/include/lib中,

输入

代码:
$ python --version
python 2.6.5

但是,却出现如下提示:
[text]
$ sudo apt-get autoremove
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
您也许需要运行“apt-get -f install”来修正上面的错误。
下列软件包有未满足的依赖关系:
command-not-found: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
computer-janitor: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
computer-janitor-gtk: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
gdebi: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
gdebi-core: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
jockey-common: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
lsb-release: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
nvidia-common: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-appindicator: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-apport: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-apt: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-aptdaemon: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-aptdaemon-gtk: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-brlapi: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-cairo: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-crypto: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-cups: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-dbus: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-egenix-mxdatetime: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-egenix-mxtools: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-farsight: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-gconf: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-gdbm: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-glade2: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-gmenu: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-gnome2: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-gnomeapplet: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-gnomecanvas: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-gnomekeyring: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-gobject: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-gst0.10: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-gtk2: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-gtksourceview2: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-gtkspell: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-imaging: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-indicate: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-launchpad-integration: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-libxml2: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-newt: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-notify: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-openssl: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-pam: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-pkg-resources: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-problem-report: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-pycurl: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-pygoocanvas: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-pyorbit: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-rdflib: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-setuptools: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-simplejson: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-smbc: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-software-properties: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-twisted-bin: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-twisted-core: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-virtkey: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-vte: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-webkit: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-wnck: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-xapian: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
python-zope.interface: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
screen-resolution-extra: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
software-properties-gtk: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
ufw: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
update-manager: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装
update-manager-core: 依赖: python (< 2.7) 但是 2.7.8-1 已经安装

2. centos怎么去卸载已经安装的python

安装打开360安全卫士—软件管家—卸载里找到要卸载的软件然后点卸载就OK了。

3. centos7怎么卸载python

你可以考虑,Arch或者Gentoo,这两种系统比较适合你,完全自己定制。 你也可以在安装centos时,选择最小化安装就不会存在这些软件,甚至好多命令都需要字安装。

4. centos7 怎么卸载 python

源码安装的软件,直接删除安装文件
yum装的用rpm -e 卸载,源代码装的把安装文件、命令文件删了,再把环境变量改一下。

5. 如何这道tensorflow卸载成功 linux

安装tensorflow

pip install --upgrade https://storage.googleapis.com/tensorflow/Linux/cpu/tensorflow-0.8.0-cp27-none-linux_x86_64.whl

错误:oserror no such file or directory site-packages/setuptools-21.0.0-py2.7.egg
解决:pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp27-none-linux_x86_64.whl
--ignore-installed

Python 2.7.3 (default, Apr 26 2016, 11:18:30)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-16)] on linux2
Type "help", "right", "credits" or "license" for more information.
>>> import tensorflow as tf
Traceback (most recent call last):
File "<stdin>", line 1, in <mole>
File "/usr/local/python27/lib/python2.7/site-packages/tensorflow/__init__.py", line 23, in <mole>
from tensorflow.python import *
File "/usr/local/python27/lib/python2.7/site-packages/tensorflow/python/__init__.py", line 45, in <mole>
from tensorflow.python import pywrap_tensorflow
File "/usr/local/python27/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 28, in <mole>
_pywrap_tensorflow = swig_import_helper()
File "/usr/local/python27/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 24, in swig_import_helper
_mod = imp.load_mole('_pywrap_tensorflow', fp, pathname, description)
ImportError: /lib64/libc.so.6: version `GLIBC_2.15' not found (required by /usr/local/python27/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow.so)

tensorflow0.80版本编译的时候使用GLIBC_2.15,系统自带的是GLIBC_2.12,所以报错了。
安装新版glibc
1.glibc下载
从http://www.gnu.org/software/libc/ 下载源代码。我下载的版本是2.20,链接地址是http://ftp.gnu.org/gnu/glibc/glibc-2.20.tar.gz

2.安装
因为glibc库使用广泛,为了避免污染当前系统环境,最好自定义安装目录,使用时定义一下环境变量就行了。具体步骤如下:

我使用的法(直接升级glibc):

wget http://ftp.gnu.org/pub/gnu/glibc/glibc-2.17.tar.xz
xz -d glibc-2.17.tar.xz
tar -xvf glibc-2.17.tar
cd glibc-2.17
mkdir build
cd build
../configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin
make && make install
需要等大概10分钟。
输入strings /lib64/libc.so.6|grep GLIBC发现已经更新

Python 2.7.3 (default, Apr 26 2016, 11:18:30)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-16)] on linux2
Type "help", "right", "credits" or "license" for more information.
>>> import tensorflow as tf
Traceback (most recent call last):
File "<stdin>", line 1, in <mole>
File "/usr/local/python27/lib/python2.7/site-packages/tensorflow/__init__.py", line 23, in <mole>
from tensorflow.python import *
File "/usr/local/python27/lib/python2.7/site-packages/tensorflow/python/__init__.py", line 45, in <mole>
from tensorflow.python import pywrap_tensorflow
File "/usr/local/python27/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 28, in <mole>
_pywrap_tensorflow = swig_import_helper()
File "/usr/local/python27/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 24, in swig_import_helper
_mod = imp.load_mole('_pywrap_tensorflow', fp, pathname, description)
ImportError: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by /usr/local/python27/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow.so)

没有GLIBCXX_3.4.14版本支持,继续安装(注意:libstdc++6_4.7.2-5_amd64.deb这是64位,libstdc++6_4.7.2-5_i386.deb这个是32位)

下载新版本,地址:http://ftp.de.debian.org/debian/pool/main/g/gcc-4.7/libstdc++6_4.7.2-5_amd64.deb
ar -x libstdc++6_4.7.2-5_amd64.deb&&tar xvf data.tar.gz

#cd /root/usr/lib/x86_64-linux-gnu
#ll
lrwxrwxrwx 1 root root 19 Apr 26 15:21 libstdc++.so.6 -> libstdc++.so.6.0.17
-rw-r--r-- 1 root root 991600 Jan 7 2013 libstdc++.so.6.0.17

# find / -name libstdc++.so.6
/usr/lib64/libstdc++.so.6
/root/usr/lib/x86_64-linux-gnu/libstdc++.so.6

#mv /usr/lib64/libstdc++.so.6 /usr/lib64/libstdc++.so.6.bak
#cp libstdc++.so.6.0.17 /usr/lib64/
#cd /usr/lib64/

#chmod +x libstdc++.so.6.0.17
#ll libstdc++.so.6.0.17
-rwxr-xr-x 1 root root 991600 Apr 26 15:30 libstdc++.so.6.0.17
#ln -s libstdc++.so.6.0.17 libstdc++.so.6

>>> import tensorflow as tf
Traceback (most recent call last):
File "<stdin>", line 1, in <mole>
File "/usr/local/python27/lib/python2.7/site-packages/tensorflow/__init__.py", line 23, in <mole>
from tensorflow.python import *
File "/usr/local/python27/lib/python2.7/site-packages/tensorflow/python/__init__.py", line 45, in <mole>
from tensorflow.python import pywrap_tensorflow
File "/usr/local/python27/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 28, in <mole>
_pywrap_tensorflow = swig_import_helper()
File "/usr/local/python27/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 24, in swig_import_helper
_mod = imp.load_mole('_pywrap_tensorflow', fp, pathname, description)
ImportError: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.19' not found (required by /usr/local/python27/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow.so)

从网上下载libstdc++.so.6.0.20

http://ftp.de.debian.org/debian/pool/main/g/gcc-4.8/
或者
http://download.csdn.net/detail/pomelover/7524227

放到/usr/lib64/下
#chmod +x libstdc++.so.6.0.20
#rm libstdc++.so.6
#ln -s libstdc++.so.6.0.20 libstdc++.so.6
#strings /usr/lib64/libstdc++.so.6 | grep GLIBCXX

ImportError: cannot import name pywrap_tensorflow

edit: The real fix for me was to updated setuptools to the latest and it allowed me to upgrade mock and six to the latest. I was on setuptools 3.3. In my case I also had to remove said moles by hand because they were owned by OS in '/usr/local/lib/python2.7/dist-packages/'
check versions of everything

pip freeze | grep -e six -e mock
easy_install --version
Update everything

wget https://bootstrap.pypa.io/ez_setup.py -O - | sudo python
pip install mock --upgrade
pip install six --upgrade

终于成功了。
>>> import tensorflow as tf
>>> hello = tf.constant('Hello, TensorFlow!')
>>> sess = tf.Session()
>>> sess.run(hello)
Hello, TensorFlow!
>>> a = tf.constant(10)
>>> b = tf.constant(32)
>>> sess.run(a+b)
42
>>>

>>> print proct
Tensor("MatMul:0", shape=(1, 1), dtype=float32)
>>> sess = tf.Session()
>>> result = sess.run(proct)
>>> print result
[[ 12.]]
>>> sess.close()
>>> exit()

6. linux 怎么卸载安装的python2.7

命令行输入:sudoapt-get remove python

7. 怎么卸载低版本的python

Windows中卸载低版本python:

使用“win+r”快捷键打开运行窗口。在运行窗口中输入control,然后回车打开控制面板。

在控制面板中找到程序选项,然后点击下面的卸载程序选项,打开程序管理器。

在安装的程序列表中找到你安装的python2.7,如下面图中所示,我这里安装了两个版本,分别是python2.7.4和python2.7.15,我这里卸载python2.7.15,双击它。

然后就会弹出python2.7的卸载程序,会自动运行,不需要你点击任何按钮。等上一会儿后,就会卸载完毕。

这个时候程序列表会自动刷新,然后python2.7.15这个版本就卸载完毕了。另外一个版本也可以用通样的方式卸载。

linux上卸载

我们这里以CentOS这个linux发行版为例,首先找到python命令的位置,命令是:

whereis python

可以看到python2.7的路径是/usr/bin/python2.7

然后使用rpm的查询命令找到python2.7命令的安装包,查询命令是:

rpm -qf /usr/bin/python2.7

可以看到python2.7命令的安装包是python-2.7.5.

然后直接使用rpm -e python-2.7.5 --nodeps命令即可卸载:

更多Python知识请关注Python视频教程栏目。

8. 在Linux中如果把Python卸载了系统还能正常运行吗

准确地说应该是系统的主体还能运行,像是kernel、X系统等都能正常运行。那些不用python系统的工具都还能继续使用,像是eclipse、gcc、浏览器、媒体播放器啥的。但那些使用python开发的管理工具不好使了。像是Fedora里面的软件包管理工具yum就是用python编写的,一旦没了python,就都废了。

9. 如何把安装linux-python卸载干净

安装在python上的模块,可以用pip或者执行setup.py来安装

如果你是用pip安装的,可以直接使用pip uninstall 模块名
如果是用python setup.py install安装,使用python setup.py uninstall来卸载

热点内容
thelinuxkernel 发布:2025-07-21 07:23:28 浏览:557
安卓刷机和线刷有什么区别 发布:2025-07-21 07:16:23 浏览:242
炫舞节奏脚本 发布:2025-07-21 06:59:55 浏览:578
xlsx表格保护密码忘记如何处理 发布:2025-07-21 06:33:57 浏览:659
儿童密码日记本的通用密码是什么 发布:2025-07-21 06:28:31 浏览:234
移动默认pppoe密码是什么 发布:2025-07-21 06:28:28 浏览:711
工资表数据库 发布:2025-07-21 06:22:54 浏览:694
c语言青蛙过河 发布:2025-07-21 06:22:47 浏览:786
安卓数据转换器实体店在哪里 发布:2025-07-21 06:12:53 浏览:572
网站后台上传不了图片 发布:2025-07-21 06:12:22 浏览:876