精华内容
下载资源
问答
  • 我的vscode同时安装了python2和python3,我使用的时候在vscode的左下角单击切换也没有问题,可是最近用pip安装各种包的时候,却发现pip被...很常见的pip install都会报错,我就想删除掉python2解释器,这个该怎么操作?
  • On my Fedora11 machine which has python2.6 pre-installed on it, I was able to successfully install python 2.7 using the following steps:wget ...

    On my Fedora11 machine which has python2.6 pre-installed on it, I was able to successfully install python 2.7 using the following steps:

    wget http://www.python.org/ftp/python/2.7/Python-2.7.tar.bz2

    tar -xvjf Python-2.7.tar.bz2

    cd Python*

    ./configure --prefix=/opt/python27

    make

    make install

    vi ~/.bash_profile

    ## replaced PATH=$PATH:$HOME/bin

    ## with PATH=$PATH:$HOME/bin:/opt/python27/bin

    ## reload .bash_profile

    source ~/.bash_profile

    echo "/opt/python27/lib" > /etc/ld.so.conf.d/python27.conf

    ldconfig

    However, when I checked the python version the system uses via terminal (python -V), it still shows python 2.6.

    How will I make the system use python2.7 as its default python?

    Or if possible, how will I uninstall python2.6?

    Thanks in advance!

    解决方案

    Uninstalling the system Python is a bad idea. There are many other packages and softwares that depend on it. It'll be better that you use python2.7 by either modifying the $PATH or creating an alias e.g. python2.7 that points to the python that you installed in /opt dir.

    展开全文
  • On my Fedora11 machine which has python2.6 pre-installed on it, I was able to successfully install python 2.7 using the following steps:wget ...

    1586010002-jmsa.png

    On my Fedora11 machine which has python2.6 pre-installed on it, I was able to successfully install python 2.7 using the following steps:

    wget http://www.python.org/ftp/python/2.7/Python-2.7.tar.bz2

    tar -xvjf Python-2.7.tar.bz2

    cd Python*

    ./configure --prefix=/opt/python27

    make

    make install

    vi ~/.bash_profile

    ## replaced PATH=$PATH:$HOME/bin

    ## with PATH=$PATH:$HOME/bin:/opt/python27/bin

    ## reload .bash_profile

    source ~/.bash_profile

    echo "/opt/python27/lib" > /etc/ld.so.conf.d/python27.conf

    ldconfig

    However, when I checked the python version the system uses via terminal (python -V), it still shows python 2.6.

    How will I make the system use python2.7 as its default python?

    Or if possible, how will I uninstall python2.6?

    Thanks in advance!

    解决方案

    Uninstalling the system Python is a bad idea. There are many other packages and softwares that depend on it. It'll be better that you use python2.7 by either modifying the $PATH or creating an alias e.g. python2.7 that points to the python that you installed in /opt dir.

    展开全文
  • 卸载Python时,出现报错:No Python 3.x installation was detected,无法卸载Python。 我是这样处理的,其实很简单: 1**打开 控制面板 的 程序和功能,如下图所示 2 选中要卸载的python后,在如下图,可以看到...

    卸载Python时,出现报错:No Python 3.x installation was detected,无法卸载Python。

    我是这样处理的,其实很简单:
    1**打开 控制面板程序和功能,如下图所示
    图1
    2 选中要卸载的python后,在如下图,可以看到更改字样,并点击
    图2
    3 点击后就会出现安装Python时的页面了,有三个选项(我已经卸载了,所以这里盗用一下网上的图):
    第一步:选择
    Repair
    *,等待进度条完毕后,点击close
    再次点击图2中的 更改,进入第二步
    第二步:选择Uninstall,等待进度条完毕后,就卸载成功了**
    图3
    再次进入 控制面板 的 程序和功能 ,就发现已经没有Python了~

    展开全文
  • 默认情况下,linux自带python,查看python版本:python --version,如果已经安装了python3则不用装了2. 下载安装包,找到要下载版本的tgz文件,Python-3.8.0.tgz(以3.8.0版本为例),下载直接linux运行命令下载:...

    一. 安装python3

    1. 默认情况下,linux自带python,查看python版本:python --version,如果已经安装了python3则不用装了

    992634-20200914151642575-48414668.png

    2. 下载安装包,找到要下载版本的tgz文件,Python-3.8.0.tgz(以3.8.0版本为例),下载

    直接linux运行命令下载:wget https://www.python.org/ftp/python/3.8.0/Python-3.8.0.tgz(版本号根据需要修改)

    992634-20200914154245324-1795701277.png

    3. 进入linux cmd,安装依赖环境,出现Complete代表安装完成。

    yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel

    992634-20200915092839462-437316407.png

    992634-20200915092916884-2011510020.png

    4. 安装gcc编译器,出现Complete代表安装完成。

    yum install gcc -y

    992634-20200915093152970-145854211.png

    5. 将下载的安装包放到linux的/usr/local目录下,解压到当前目录,创建目录/usr/local/python3:

    cd /usr/local

    tar -zxvf Python-3.8.0.tgz

    mkdir /usr/local/python3

    6. 进入Python-3.8.0目录,配置安装目录,这里的安装目录对卸载的时候很友好,建议配置

    cd /usr/local/Python-3.8.0

    ./configure --prefix=/usr/local/python3

    992634-20200915094113809-957675652.png

    7. 编译源码并执行源码安装,如图,则代表安装完成,可以看到setuptools和pip也安装成功了

    make

    make install

    992634-20200915094727558-1280504293.png

    8. 创建软连接

    ln -s /usr/local/python3/bin/python3 /usr/bin/python3

    ls -l /usr/bin/python3

    992634-20200915095753679-299265179.png

    9. 输入python3,查看是否安装成功, 如图, 安装成功

    992634-20200915095925854-1949110373.png

    10.此时还是可以使用Python2.7版本(运行python2即可)

    992634-20200915102145725-1183808307.png

    11. pip3创建软连接,查看pip3版本

    ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3

    pip3 -V

    992634-20200915101801343-347043271.png

    12. 配置环境变量

    vi ~/.bash_profile

    输入:

    #配置python

    export PYTHON_HOME=/usr/local/Python-3.8.0

    export PATH=$PYTHON_HOME/bin:$PATH

    :wq保存退出

    执行命令:

    source ~/.bash_profile

    echo $PYTHON_HOME

    992634-20200915102031536-1061780282.png

    992634-20200915102007325-993744273.png

    13.设置python3为默认python

    cd /usr/bin

    rm -rf python

    ln -s /usr/bin/python3 python

    992634-20200915105244775-506084118.png

    14. 将pip3设置为默认pip

    ln -s /usr/bin/pip3 /usr/bin/pip

    992634-20200915105558703-1354790111.png

    992634-20200915105616282-1414148328.png

    二. 卸载python3

    1. 前面第6步安装的时候我们配置了安装目录,所以卸载的时候直接把该目录删了即可

    992634-20200915113056808-656495675.png

    rm -rf /usr/local/python3

    展开全文
  • 卸载python

    2019-04-14 23:44:40
    卸载python sudo apt autoremove python3.6
  • I am having trouble with my current python, so I wanted to uninstall my python and install the latest version. I installed with homebrew, so I uninstalled it with homebrew and reinstalled python 3.8.1...
  • 装了anaconda其实是可以选择卸载python,当然也可以不卸载。Anaconda 是Python的一个发行版,里面内置了很多工具,不用单独安装,因为做了优化也免去了单独安装带来的一些麻烦。Anaconda 是一种Python语言的免费增值...
  • Ubuntu卸载python(慎重)

    万次阅读 多人点赞 2019-10-24 19:23:20
    Ubuntu卸载python(慎重) 看到这篇博客你还有机会收手 Ubuntu系统下不要轻易卸载系统自带的python(2.7、3.5),因为Ubuntu依赖python环境。 惨痛经历: 卸载python3.5(作死) sudo apt-get remove python3.5 #...
  • 如果使用PKG安装程序安装它,则可以:pkgutil --pkgs或更好:pkgutil --pkgs | grep org.python.Python它将输出如下内容:org.python.Python.PythonApplications-2.7org.python.Python.PythonDocumentation-2.7org....
  • 不同方式的安装 Python,它们的彻底卸载方式也各有不同;此外 Mac OS X(10.8+)系统中已经预先安装了Python 2.7,Mac 中很多自带的命令都是 Python 写的,所以最好不要删除自带的 Python。这也从侧面充分...
  • Ubuntu彻底卸载Python

    2021-05-08 10:27:43
    若要卸载python2,则查看命令为 python2 --version 若要卸载python3,则查看命令为 python3 --version 这里我卸载python3.6. 2.卸载Python3.6 sudo apt-get remove python3.6 3.卸载Python3.6及其依赖 ...
  • ubuntu完全卸载python2.7

    千次阅读 2020-05-29 16:10:20
    centos不可以卸载python2.7,因为yum依赖python2.7 此处介绍ubuntu如何卸载python2.7 1.卸载python2.7 sudo apt-get remove python2.7 2.卸载python2.7及其依赖 sudo apt-get remove --auto-remove python2.7 3....
  • Armbian 完全卸载 Python

    千次阅读 2020-04-12 14:52:18
    完全卸载python(这里Python默认:2.7) apt remove python3 |python | ipython 完全卸载python及其依赖软件(慎用!这里会删除python及依赖python的软件包) apt remove remove python3 |python | ipython apt ...
  • 卸载Python

    2021-03-18 15:14:21
    卸载Python 方法一:   1、找到安装包------双击------点击 Uninstall 。   2、接下来只需等待加载完成就可以了。   3、出现这个界面后就是卸载成功了,点击 Close 关闭即可。 方法二:   1、找到“此电脑...
  • Python 卸载python

    2021-03-26 18:21:17
    rpm -qa|grep python3|xargs rpm -ev --allmatches --nodeps 卸载pyhton3 whereis python3 |xargs rm -frv 删除所有残余文件 成功卸载! whereis python 查看现有安装的python
  • 一、安装Python双击下载的安装包,安装过程需要注意修改添加程序到环境变量。二、 Anaconda科学计算包Python是一种强大的编程语言,其提供了很多用于科学计算的模块,常见的包括numpy、scipy和matplotlib。要利用...
  • 卸载python3.4

    千次阅读 2018-06-29 19:44:56
    1、卸载python3.4sudo apt-get remove python3.42、卸载python3.4及其依赖sudo apt-get remove --auto-remove python3.43、清除python3.4sudo apt-get purge python3.4 or sudo apt-get purge --auto-remove python...
  • 卸载 python3

    2021-07-31 11:09:32
    卸载python3 rpm -qa|grep python3|xargs rpm -ev --allmatches --nodeps 卸载pyhton3 whereis python3 |xargs rm -frv 删除所有残余文件 成功卸载! whereis python 查看现有安装的python
  • linux卸载python3

    2020-04-09 21:32:47
    一、卸载Python3 1、卸载python3 rpm -qa|grep python3|xargs rpm -ev --allmatches --nodeps 卸载pyhton3 2、whereis python3 |xargs rm -frv 删除所有残余文件 成功卸载! 3、whereis python 查看现有安装的...
  • 问题详细描述我之前在Mac(OS Mavericks)上安装了Python Anaconda,现在我想恢复到Mac上默认版本的Python。最好的方式是做什么?我应该删除〜/anaconda目录吗?是否需要其他更改?目前我运行which python我得到下面的...
  • # 卸载python3.8 sudo apt-get remove python3.8 # 卸载python3.5以及它的依赖包 sudo apt-get remove --auto-remove python3.8 亲测可用 Ubuntu系统修改Python软链接 which python sudo rm /usr/bin/python # ...
  • 完全卸载Python for ubuntu

    万次阅读 2018-05-11 08:21:44
    1、卸载python3.4 sudo apt-get remove python3.4 2、卸载python3.4及其依赖 sudo apt-get remove --auto-remove python3.4 3、清除python3.4 sudo apt-get purge python3.4 or sudo apt-get purge --...
  • linux卸载Python3

    千次阅读 2019-09-24 16:37:05
    一、卸载Python3 1、卸载python3 rpm -qa|grep python3|xargs rpm -ev --allmatches --nodeps 卸载pyhton3 2、whereis python3 |xargs rm -frv 删除所有残余文件 成功卸载! 3、whereis python 查看...
  • Ubuntu卸载python3.6

    万次阅读 2018-01-05 22:08:17
    注意:这里说一下,系统自带的python3.6可别乱删,这个是我自己下载的python3.6 ...安装多余的python3.6没有用,才使用下列命令卸载python3.6及其一些依赖软件包 命令: sudo apt autoremove python3.6 ...
  • 1.卸载python2 sudo apt-get remove python 2.安装python3 sudo apt-get install python3 3.检验 python3
  • ubuntu卸载python3.8

    千次阅读 2020-11-19 14:08:37
    1.卸载python3.8 sudo apt-get remove python3.8 2.卸载python3.5以及它的依赖包 sudo apt-get remove --auto-remove python3.5 3.清除python3.5 要想清除python3.5的配置文件和数据文件,执行以下命令: ...
  • ubuntu 卸载python3.5

    千次阅读 2020-08-11 17:28:09
    1.卸载python3.5 sudo apt-get remove python3.5 2.卸载python3.5以及它的依赖包 sudo apt-get remove --auto-remove python3.5 3.清除python3.5 要想清除python3.5的配置文件和数据文件,执行以下命令: ...

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 79,186
精华内容 31,674
关键字:

怎样卸载python

python 订阅