Issue
I am new to flask, in some tutorial i saw using something like /Scripts/activate in linux and in other tutorial i saw /Scripts/activate.ps1 what are those activate.ps1 activate.bat and how they differ from activate file.
are all those only for activating environment but in different way?
Solution
That's the typical script to activate a conda or venv environment. Best practice is to create a virtual environment (e.g., with conda or venv) specifically for each project, to avoid conflicts, and then activate that environment just before using it.
On Linux, the path is normally bin/activate
, while Scripts\activate*
would be normal on Windows.
On Windows, Scripts\activate.bat
is for a cmd
shell, while Scripts\activate.ps1
is for PowerShell.
Answered By - joanis Answer Checked By - Katrina (WPSolving Volunteer)