Python3.8 Venv Without Activate Script

Python3.8 Venv Without Activate Script

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

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.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

David Miller
Author

David Miller

David Miller brings 15 years of experience in global economics, personal finance strategy, and market dynamics. He specializes in turning complex economic trends into actionable insights for everyday readers.