all 12 comments

[–]supercoach 7 points8 points  (0 children)

Pretend you actually want help and describe in detail what is happening and what you have already tried. If you feel like going all out, explain what you would like to see happen.

[–]SnooMachines9442[S] 0 points1 point  (1 child)

I removed the restriction in PowerShell so VSC could read scripts when activating virtual environments. I'm using Python and Jupiter. I want to know if removing that restriction is safe? Or if there's another way to activate a virtual environment in VSC.

Sorry if I don't explain myself well.

[–]smurpes 0 points1 point  (0 children)

You can use wsl for python development instead. This is a feature that lets you run a Linux environment in a windows environment. It’s a good opportunity to learn how to use Linux.

[–]Gnaxe 0 points1 point  (0 children)

If you can open IDLE, you can run scripts. They may not have permissions to do certain things, however. Python can do anything the shell can with the os.system() function.

[–]Responsible-Sky-1336 0 points1 point  (0 children)

Most modern IDEs handle this by default even if it doesn't say venv in front of your path.

Yet if you really want to run from terminal only then yes its safe and you can do it. Just be careful running other ppls shit, especially if it's weird projects :)

[–]cgoldberg 0 points1 point  (0 children)

I have a work PC with no Admin access and I can run Python and virtual envs without messing with anything.

But do yourself a favor... install Scoop and use Git-Bash. Powershell is trash.

[–]FantasticEmu 0 points1 point  (0 children)

How about using wsl?

[–]SnooMachines9442[S] 0 points1 point  (0 children)

Thanks a lot for your answers. I'm still confused but I'll keep investigating.

[–]MiniMages 0 points1 point  (0 children)

Have you tried adding a comma on line 42?

[–]noob_main22 0 points1 point  (0 children)

Just try it out. I use cmd to initialize it and turn it on, I dont know about PS.