首页 > 系统相关 >How to change the default Python2 to Python3 on Linux All In One

How to change the default Python2 to Python3 on Linux All In One

时间:2023-05-25 12:12:19浏览次数:36  
标签:TARGET links ln default symbolic How link -- change

How to change the default Python2 to Python3 on Linux All In One

Raspberry Pi

在 Linux 中如何把默认的 Python2 更改为 Python3

solutions

  1. .bashrc / .zshrc alias
$ sudo vim .bashrc

$ cat .bashrc
$ cat .bashrc | grep py
# .bashrc 配置一个 alias ✅
# Python3 => py3 

标签:TARGET,links,ln,default,symbolic,How,link,--,change
From: https://www.cnblogs.com/xgqfrms/p/17430775.html

相关文章

  • el-input的input和change事件区别
    inputinput是在输入值变化后就会触发changechange是在输入值变化并且失去焦点或用户按Enter时触发。与blur事件有着相似的功能,但与blur事件不同的是,change事件在输入框的值未改变时并不会触发blur不管输入值是否变化,只要失去焦点就会触发......
  • ctfshow终极考核
    信息收集这个环境就只涉及目录扫描了[18:04:02]200-43B-/.bowerrc[18:04:03]200-34B-/.gitignore[18:04:04]200-2KB-/.travis.yml[18:04:24]200-3KB-/page.php[18:04:28]200-19B-/robots.txt/robots.txt得到source.txt访问发......
  • How to enable Vsync with Software Rendering in SDL [SOLVED]. 如何在SDL2下实现
    HowtoenableVsyncwithSoftwareRenderinginSDL[SOLVED].Hi,IjustfiguredoutthedirtywaytoenablevsyncwithsoftwarerenderingonSDL.Thiswasbotheringmeforaweeknow&I'veseenmanyquestionsonthenetwithoutanswer.ButIf......
  • How to find the TLS used for the SQL Server connection
    本文是HowtofindtheTLSusedfortheSQLServerconnection这篇英语文章的翻译,此文出处请见于文章底部链接:原文出处[1]对于客户,我做了一些研究,如何找出SQLServer数据库会话连接使用了哪一种TLS协议。唯一的方式就是创建一个扩展事件,这个扩展事件有一个很大的限制就是只有......
  • How to Delete a Git Branch Both Locally and Remotely
    TL;DRversionhttps://www.freecodecamp.org/news/how-to-delete-a-git-branch-both-locally-and-remotely///deletebranchlocallygitbranch-dlocalBranchName//deletebranchremotelygitpushorigin--deleteremoteBranchName#ToMakeLinuxshowuser@h......
  • this.$refs.ref 不存在 undefined v-if和v-show 的区别
    <divv-if='true'>  <div>....<el-inputref='ref'/></div></div> 上面的代码,引用this.$refs.ref=undefined; 改为v-show解决。 网上有好多说法是:this.$nextTick(()=>{放这里});在这里不能解决的。原因:v-if条件不满足,document中是不存在的,v......
  • ExitDefaultVal
    usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;namespaceExitDefaultVal{classProgram{staticvoidDefValue(stringa="Hi",stringb="Jim"){Console.W......
  • ctfshow php特性
    web111源代码highlight_file(__FILE__);error_reporting(0);include("flag.php");functiongetFlag(&$v1,&$v2){eval("$$v1=&$$v2;");//这里是一个赋值语句把v2的值复制下面通过get获得的$$v1值var_dump($$v1);//打印$$v1的值}if(isset($_......
  • Golang的viper包调用多次OnConfigChange
    问题:修改了一次,而执行了两次这个函数解决方案把配置文件进行md5,保存其md5值。在调用这个函数时,再次读取文件进行md5。两者比对,如果相等就不执行下面的逻辑。这样就解决了,一模一样的配置文件,保存多次,不会执行后续的逻辑。但是,杜绝了大部分的场景,比如修改了一次,保存了两次......
  • Show Psw
    <!DOCTYPEHTMLPUBLIC"-//W3C//DTDHTML4.01Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"><html><head><title>NewDocument</title><metaname="Generator"content="Edi......