腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
如何
设置
缺省
Python
版本
而
不
使用
--
update-alternatives
python
、
python-3.x
、
linux
我在安装
Python
3.6和
Python
3.8时
使用
了Ubuntu18.04包存储库。我刚刚从源代码构建了
Python
3.10,现在我想将其
设置
为默认值。更改的规范方法是
使用
--
update-alternatives
,但我在安装
Python
3.6和
Python
3.8时没有这样做,所以当我执行以下命令时:
update-alternatives
--querysudo
update-alternatives</
浏览 77
提问于2021-11-14
得票数 0
1
回答
如何
防止更改默认
Python
版本
?
debian
、
python
、
defaults
我
使用
的许多应用程序(arandr,inkscape,.)当
update-alternatives
--config
python
将默认
Python
版本
设置
为
Python
-3时,就会崩溃。我
如何
防止自己在将来将默认
Python
版本
设置
为
Python
-3,就像我们在/etc/resolv.conf by chattr +i /etc/resol
浏览 0
提问于2021-02-14
得票数 0
1
回答
在Ubuntu18.04上与
Python
2.7一起安装
python
3
python3
我有
Python
2.7和许多用于运行大部分代码的库。但是,我想在它旁边安装
python
3,这样我就可以偶尔
使用
它来测试我最近获得的一些新代码。
如何
安装它以避免对
Python
2.7和已安装的库造成任何问题?
浏览 0
提问于2019-05-13
得票数 10
回答已采纳
1
回答
如何
删除Ubuntu中的
Python
2?
python
、
python-2.7
、
ubuntu
、
uninstallation
我通过虚拟机安装了Ubuntu,并预装了
Python
3。我想试用一个用
Python
2制作的包,所以我安装了
Python
2.7(这是默认的Anaconda2 )和Anaconda2。现在我已经完成了这个包,我删除了anaconda2,我也想删除
Python
2,但是如果它是默认的,恐怕它会毁了我的系统。我该
如何
安全地做这件事?(base) me@me-VirtualBox:~$ whereis
python
python
: /usr/bin/<
浏览 3
提问于2020-04-01
得票数 2
回答已采纳
1
回答
Ubuntu
python
3.7到3.8更新替代方案
python
、
ubuntu
、
python-3.8
我正在尝试将ubuntu上的
python
3.7升级到3.8。在
使用
sudo apt install
python
3.8
python
-V和
python
3 -V都指向
Python
3.7.0。我查看了文件系统,只能找到标记为3.8的文件,没有标记为3.7的文件,但是
python
-V显示当前
版本
是3.7.0。然而,
update-alternatives
仍然表示没有替代方案。我无论
如何
都会运行以下两个config命令,
浏览 59
提问于2021-09-12
得票数 0
2
回答
强制执行shell脚本以执行特定的
python
版本
command-line
、
bash
、
python
、
scripts
我已经将别名更改为别名
python
='/usr/bin/
python
2.7‘,但是shell脚本仍然在2.4.3中运行
python
脚本。Shell脚本如下所示。 cd ../../../..export BREVE_CLASS_PATH=/home
浏览 0
提问于2015-04-15
得票数 2
1
回答
为什么我不能更改
python
版本
?
python
、
python-3.x
我正在尝试将
python
3.6
设置
为默认
设置
(
而
不是
python
3.8)/usr/bin/
python
3.6
update-alternatives
--config
python
的输出 There are 2 choi
浏览 1
提问于2021-10-08
得票数 0
6
回答
如何
将
python
版本
从默认的3.5更改为google的3.8
python
、
google-colaboratory
我在google上下载了
python
版本
3.8,
使用
:现在,我想将3.6中
使用
的默认
python
版本
更改为3.8.。怎么做??
浏览 8
提问于2020-07-30
得票数 17
2
回答
ImportError:没有名为'psutil‘的模块
python
、
python-3.x
、
pip
、
odoo-11
您好,我正在尝试运行一个odoo项目,每次尝试运行它时,我都会得到以下错误我试着跑我正在
使用
odoo 11和
python
3.5,我尝试了以下命令来安装软件包也是它现在应该已经安装好了,因为当我再次运行最后一个命令时,它会显示以下消息 Requ
浏览 5
提问于2018-05-02
得票数 4
3
回答
安装了Ruby 1.9.1,但是Ruby --
版本
显示不同的
版本
ruby
、
ubuntu
、
rubygems
、
ubuntu-12.04
我安装了ruby via但是,当我运行ruby --version时,我看到我错过了什么吗?当我尝试运行一个需要1.9+的gem时,它失败了,并要求我升级。
浏览 1
提问于2014-04-01
得票数 0
1
回答
不
承认
Python
3的更改
python3
问题命令sudo
update-alternatives
--config
python
3无法在不同的
Python
3选项之间切换(请参阅下面的详细信息)。这是在
python
3 -V返回系统
版本
而
不是所选选项的
版本
时确认的。 Installing多个
python
版本
TL;教程从ppa:deadsnakes/ppa存储库安装多个
版本
的D4。一旦安装了
版本
,
python
3命令就
浏览 0
提问于2022-06-13
得票数 0
23
回答
无法在ubuntu中将默认
python
版本
设置
为
python
3
python
、
python-3.x
、
ubuntu
、
installation
、
ubuntu-16.04
我试图将默认的
python
版本
设置
为
python
3 in Ubuntu 16.04。默认情况下是
python
2 (2.7)。我遵循以下步骤:
update-alternatives
--install /usr/bin/
python
python
浏览 25
提问于2017-02-01
得票数 278
回答已采纳
7
回答
如何
修复'ModuleNotFoundError:没有名为'apt_pkg‘的模块?
python
、
ubuntu-18.04
cnf-update-db", line 8, in <module> File "/usr/lib/
python
3
浏览 30
提问于2019-05-20
得票数 54
1
回答
突然无法发射终端
16.04
、
command-line
、
shortcut-keys
、
launcher
、
gnome-terminal
我
使用
的是Ubuntu16.04,直到最近,所有的终端都运行得很好,但是现在快捷方式(CTRL+ALT+T)和单击应用程序菜单中的终端没有什么作用。然而,我能够启动通过右键点击桌面和选择“开放终端”。我在所有事情之间所采取的唯一操作都很好,而这些问题是重新分配不同默认
版本
的
python
和
python
3。几天前,我将
python
重新映射到了
python
3的一个
版本
,它似乎已经损坏了Autokey,但没有引起任何其他明显的问题。在没有突破的情况下,我引起了这些新问题。我漏掉
浏览 0
提问于2019-07-17
得票数 0
回答已采纳
3
回答
Python
2.7.2作为Debian 5 Lenny的默认值,用于Django应用程序
python
、
django
、
debian
wget http://www.
python
.org/ftp/
python
/2.7.2/
Python
-2.7.2.tgzcd
Python
-2.7.2/configuremake altinstallsudo
update-alternatives
--install /usr/bin/
python</em
浏览 8
提问于2012-02-19
得票数 3
回答已采纳
2
回答
使用
python
2.7的apache2 &我想
使用
python
3.4
python
、
apache
、
ubuntu
、
mod-wsgi
、
bottle
我用
python
bottle
设置
我的服务器& mod_wsgi我的瓶子脚本都是用
python
3.4编写的,但是apache2服务器默认
使用
python
2.7.6?有没有办法让
python
3.4成为apache2上的默认
python
? 我现在有货
浏览 2
提问于2016-06-04
得票数 13
回答已采纳
2
回答
与
python
版本
不匹配
python
、
python-3.x
我混淆了我
使用
的
python
版本
(在Ubuntu下):当我在linux终端(不是pycharm终端)工作时,我正在检查我得到的
版本
:sudo
update-alternatives
--config
py
浏览 4
提问于2020-05-27
得票数 0
回答已采纳
2
回答
Python
符号链接混淆
ubuntu
、
python
、
symlink
、
alternatives
使用
Ubuntu 16.04$ sudo
update-alternatives
--install /usr/bin/
python
python
/usr/bin/
python
3.6 1
update-altern
浏览 0
提问于2019-04-09
得票数 3
回答已采纳
1
回答
如何
将
python
的
版本
从3.8更改为2.7
20.04
、
python
、
python3
、
python-2.7
、
default
为了
使用
PneumoCaT,我需要
使用
Python
2.7,因为它只运行于
Python
2.7,
而
不是更高的
版本
。我试图在Ubuntu中将
Python
版本
从3.8
设置
为2.7,但我做不到。这是我正在
使用
的代码。<e
浏览 0
提问于2021-12-15
得票数 0
9
回答
更改Ubuntu中的
Python
3默认
版本
ubuntu
、
python
、
python3
我正在
使用
Ubuntu16.04LTS。我安装了
python
3。安装了两个
版本
,
python
3.4.3和
python
3.6。每当我
使用
python
3命令时,它默认
使用
python
3.4.3。我想把
python
3.6和
python
3结合
使用
。我正在安装ansible,它支持version &
浏览 0
提问于2017-12-13
得票数 334
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
1.python编程入门
ubuntu16.04安装caffe cpu版
Python 内置函数 enumerate
Turtle绘图-小汽车
Python函数笔记2
热门
标签
更多标签
云服务器
即时通信 IM
ICP备案
对象存储
实时音视频
活动推荐
运营活动
广告
关闭
领券