what is activate file in flask and what are other activate.bat activate.ps1 and others

Question:

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?

Asked By: mind overflow

||

Answers:

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 Scriptsactivate* would be normal on Windows.

On Windows, Scriptsactivate.bat is for a cmd shell, while Scriptsactivate.ps1 is for PowerShell.

Answered By: joanis
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.