Upgrading python3.4 to python3.6 on ubuntu breaks pip

前端 未结 9 982
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-08 06:56

I\'m attempting to install python3.6 on my machine after I currently have python3.4. However, after installation trying to run pip under python3.6 gives me the

9条回答
  •  -上瘾入骨i
    2020-12-08 07:22

    I replaced Python 3.4 with 3.6 on my Ubuntu 14.04 servers and I had the same problem. In my case the cause seemed to be an ancient system pip:

    $ pip --version
    pip 1.5.4 from /usr/lib/python2.7/dist-packages (python 2.7)
    

    I have never installed python3-pip. Instead I solved the error as follows:

    $ sudo pip install --upgrade pip
    $ sudo pip install --upgrade virtualenv
    

提交回复
热议问题