When I try to create a virtual environment, the created folder does not have the venv/bin/activate script.
I tried to install and reinstall venv using sudo apt install python3-venv, but it always comes broken (without the script).
I also tried to use virtualenv (tried to install it using both sudo apt install python3-virtualenv and pip install virtualenv), but it also doesn't create the script.
1 Answer
For some reason I tried to reinstall it again some times and now it worked.
I think i forgot to purge the package the last time and it tried to reinstall the package that was already downloaded.
So I ran sudo apt purge python3-venv and sudo apt install python3-venv and it worked.