apt-get install for different python versions

后端 未结 3 1449
粉色の甜心
粉色の甜心 2020-12-29 07:15

I have ubuntu 10.04 with python2.6 by default. I have installed python2.7.

When I want to install python packages with

apt-get python-

        
3条回答
  •  春和景丽
    2020-12-29 08:05

    ubuntu 10.04 doesn't have a python2.7 package. You have to build 2.7 yourself. I did read an article about ubuntu releasing a python2.7 package when 12.04 came out but i'm not sure what the repository location is.

    http://eli.thegreenplace.net/2011/10/10/installing-python-2-7-on-ubuntu/

    or:

    sudo add-apt-repository ppa:fkrull/deadsnakes
    sudo apt-get update
    sudo apt-get install python2.7
    

    https://askubuntu.com/questions/101591/install-python-2-7-2-on-ubuntu-10-04-64-bit

    this question has lots of answers online.

提交回复
热议问题