- 下载安装包.tgz
- tar -zxvf Python
- cd P..
- ./configure
- make
- sudo make install
- 通过 /usr/local/bin/python -V 查看版本号
以下代码有问题:
- sudo rm /usr/bin/python
- sudo ln -s /usr/include/python2.7 /usr/bin/python
改为:
- sudo ln -s /usr/local/bin/python /usr/bin/python
时间: 2024-11-03 03:27:14