I am developing in the following environment:
- Windows11 21H2.
- Ubuntu-20.04
- Visual Studio Code 2022
- Remote-WSL extension in VSCode
- Python3.8.10 64-bit
I formatted a USB drive in NTFS format and installed Django in the virtual environment with the following procedure:
sudo python3 -m venv .venv
sudo source .venv/bin/activate
sudo python3 -m pip install django
Originally, the version should be displayed when sudo python3 -m django --version
is executed, but No module named django
is displayed.
How can I install packages for each virtual environment?
As a result of checking, it seems that it is installed in /usr/local/lib/python3.8/dist-packages/
even if (.venv) is displayed at the tip of the command line.