在ubuntu下创建python3环境
下载python3.7.0
- 官网下载tgz文件
- 用tar命令解压到/usr/bin/python (事先创建文件夹)
- 进入该位置
- ./configure
- sudo make
- sudo make install 编译
编译过程中问题:
下载pip3
sudo apt-get -y upgrade
The -y flag will confirm that we are agreeing for all items to be installed, but depending on your version of Linux, you may need to confirm additional prompts as your system updates and upgrades.
不知道为什么不自带pip
sudo apt-get install -y python3-pip