I am setting up a clean version of Ubuntu under WSL2, it needs to run python 3.7 because of some dependencies. The goal is to have a project folder with a virtual environment in it, and to be able to install packages into the venv.
The sequence of commands I use to set up the environment is
sudo apt updatesudo apt install software-properties-commonsudo add-apt-repository ppa:deadsnakes/ppasudo apt-get updatesudo apt install python3.7sudo apt install python3-pipsudo apt install python3-virtualenv
Everything works up to the point where I try and install a package into the venv. The commands are
cd ./OneDrive/dev/babyclix_stgvirtualenv -p /usr/bin/python3.7 .venvsource .venv/bin/activatepip3 install requests
The last pip3 command then returns this exception/error message.
(.venv) dev@DESKTOP-6FAUQ4D:/mnt/c/Users/mark/OneDrive/dev/babyclix_stg$ pip3 install requestsDefaulting to user installation because normal site-packages is not writeableRequirement already satisfied: requests in /usr/lib/python3/dist-packages (2.22.0)
My venv, which created successfully has this structure.
I am obviously doing something basic incorrectly. Can someone please point out my error.Thanks