[Issue Fixed]-Ubuntu开发环境下遇到的环境问题梳理

1、从github拉取代码

repo init -u https://github.com/OP-TEE/manifest.git -m qemu_v8.xml --repo-url=https://mirrors.tuna.tsinghua.edu.cn/git/git-repo -b 3.8.0

报了: Failed to connect to github.com port 443: Connection timed out

repo: warning: Python 2 is no longer supported; Please upgrade to Python 3.6+.
repo: warning: Python 2 is no longer supported; Please upgrade to Python 3.6+.
fatal: unable to access https://github.com/OP-TEE/manifest.git/: Failed to connect to github.com port 443: Connection timed out
manifests:
fatal: unable to access https://github.com/OP-TEE/manifest.git/: Failed to connect to github.com port 443: Connection timed out

解决办法,取消git代理:

git config --global --unset http.proxy
git config --global --unset httpx.proxy

如果以上还解决不了,请打开vim /etc/hosts 去查看,将带有github的行删除

2、ubuntu14.04上安装python3.6

1、下载Python3

wget http://www.python.org/ftp/python/3.6.4/Python-3.6.4.tgz
wget会将文件下载到当前目录下,所以下载前选好目录。

2、下载完成后,解压

tar -xvzf Python-3.6.4.tgz 
3、解压完成后,切换到Python3文件夹中

cd ./Python-3.6.4
4、分别执行

./configure --with-ssl
 
make
 
sudo make install
5、输入Python3验证

Python3
经验分享 程序员 微信小程序 职场和发展