Install Python 3 on Ubuntu in WSL2

preview_player
Показать описание
How to install Python 3 and pip3 on Ubuntu in WSL2

Commands:
sudo apt update
sudo apt install -y python3
sudo apt install -y python3-pip
sudo apt install -y build-essential libssl-dev libffi-dev python3-dev
sudo apt install -y python3-venv
python3 -m venv NameOfYourEnvironment
source NameOfYourEnvironment/bin/activate
deactivate
pip3 install django
mkdir python-development
cd python-development
`import django
print("hello world, django is imported")`
escape:wq
cd ..
python3 -m venv my_env
source my_env/bin/activate
deactivate
source ../FredriksEnv/bin/activate
pip3 freeze
deactivate
source ../my_env/bin/activate
Рекомендации по теме