网络安全这课用python真是反复横跳,一会python2,一会又python3...每次切换都要百度一下,不如在这里记录下来 如果已经安装了python2与python3,想更改默认python命令python3的话: 执行以下两条命令,给每个python版本创建可以用户选择的文件 sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 100 sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 150 切换到刚才自定义的版本,输入: sudo update-alternatives --config python  之后输入想要的版本号就行了(selection下面的数字) ------------ End Last modification:March 31st, 2020 at 01:49 pm © The copyright belongs to the author
Comment here is closed