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

前端 未结 9 997
爱一瞬间的悲伤
爱一瞬间的悲伤 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条回答
  •  情深已故
    2020-12-08 07:17

    I was having the same issue. It seems I had 2 versions of pkg_resources on my system.

    /usr/local/lib/python3.6/site-packages/pkg_resources.py

    /usr/lib/python3.6/site-packages/pkg_resources/__init__.py

    Moving the old version so my system could find the newer version fixed it for me.

    mv /usr/local/lib/python3.6/site-packages/pkg_resources.py /usr/local/lib/python3.6/site-packages/pkg_resources.py.back

提交回复
热议问题