linux下更新Python版本并修改默认版本,有需要的朋友可以参考下. 很多情况下拿到的服务器python版本很低,需要自己动手更改默认python版本 1.从官网下载python安装包(这个版本可以是任意版本3.3 2.7 2.6等等) wget http://python.org/ftp/python/2.7/Python-2.7.tar.bz2 2.解压并安装 tar -jxvf Python-2.7.tar.bz2 cd Python-3.3.0 ./configure make al
在更新git版本时,没有备份就删掉了原先的版本,在安装完2.18.0的新版本后,使用命令行git --version,返回错误git not a developer tool or in PATH. 问题的解决: 1.命令行中输入 which git,返回的路径是usr/bin/git,在echo $PATH 中没有; 2.确定原因,没有添加路径:目前的安装路径是usr/local/git,只要将这个路径添加系统路径里就ok: 3.cd ~,进入usr/bin ,vim .bash_profil