Search code examples
pythonpython-3.xpython-2.7pippipenv

How to Change Change Python 2.7 to Python 3,6 in UBuntu?


I need use Python 3.6 in my project, I change my path ./bashrc with:

alias python=python3 on the first line.

My problem is, I need use Pip and Pipenv, and when I try install these packages, they are installed for python 2.7, and When I run these commands, they run with python2.7.

I need change my Python path to 3.6 and Pip and Pipenv use with Python 3.6.

What do I do?


Solution

  • Install the Python 3 version of Pip for Ubuntu: $ apt install python3-pip and invoke it with $ pip3