pythondjangocmdvirtualenv

Cannot activate venv & there is no 'Scripts' Folder


I'm trying to make a venv, but the activation step, is not working and raises error below:

'activate' is not recognized as an internal or external command, operable program or batch file.

First of all I'm using windows-OS, but the files that made by the command: python -m venv env_name are: click here to see the files pic. and instead of 'Scripts' Folder it made 'bin' Folder. Anyway, I've tried this code: env_name/bin/activate. But instead of making the env, it raised the error that i mentioned before.

i will be appreciated if someone help. thanks


Solution

  • I found the solution. In my case, I tried using Windows-PowerShell, and by default, the execution policy, was set to Restricted, and with this solution, I've changed it to RemoteSigned and all done.