python_day03
amitmund
May 23, 2026
Python Day03
A demo on python venv and text-to-speech, to understand the power of python and its ecosystem.
Pre windows setup check.
Open powershell on windows as administrator.
Check the current execution permission.
Get-ExecutionPolicy -list
Scope ExecutionPolicy
----- ---------------
MachinePolicy Undefined
UserPolicy Undefined
Process Undefined
CurrentUser RemoteSigned
LocalMachine Undefined
If you see, you have different Scope and Each Scope have different ExecutionPolicy. When you try to activate venv for, as it's not a
known Signedapplication, your venv will not run, and it will through error. To mitigate this, you need to make sure you have enough permission on your this test environment.
Setting up venv.
python -m venv your_venv_name
- Ideally its good to give your project name as your venv_name.
Example:
python -m venv text_to_speech
