Install and using Python in WSL

Lets start to check what we have from previous articles installed.

Python 3.x

$python3 -V
$sudo apt-get --only-upgrade install python3


$python3 -m pip --version
$sudo apt install python3-pip

for using python is best practice use separate directory (Virtual environment) so we can isolated all about python inside directory.

In case of some problems you reinstall PIP3 like this

$python3 -m pip uninstall pip && sudo apt install python3-pip --reinstall

Install env

$sudo apt install python3-venv

Now we create folder when we put everything about python

$mkdir ~/pydev
$cd ~/pydev
$python3 -m venv my_python_project01
$source my_python_project01/bin/activate

Install PipEnv

$pip3 install pipenv

Leave a Reply

Close Menu