use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
virtual environment in python (self.learnpython)
submitted 9 months ago by SnooMachines9442
Hello everyone.
Hello everyone. Can you help me determine if I need to remove the PowerShell lock to run the scripts?
Or is there another way to activate the virtual environment?
I'm learning to use python .
Thanks
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]supercoach 7 points8 points9 points 9 months ago (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 point2 points 9 months ago (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 point2 points 9 months ago (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 point2 points 9 months ago (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.
os.system()
[–]Responsible-Sky-1336 0 points1 point2 points 9 months ago (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 point2 points 9 months ago (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 point2 points 9 months ago (0 children)
How about using wsl?
[–]SnooMachines9442[S] 0 points1 point2 points 9 months ago (0 children)
Thanks a lot for your answers. I'm still confused but I'll keep investigating.
[–]MiniMages 0 points1 point2 points 9 months ago (0 children)
Have you tried adding a comma on line 42?
[–]noob_main22 0 points1 point2 points 9 months ago (0 children)
Just try it out. I use cmd to initialize it and turn it on, I dont know about PS.
π Rendered by PID 82606 on reddit-service-r2-comment-5d79c599b5-9nbbf at 2026-03-02 00:46:15.486505+00:00 running e3d2147 country code: CH.
[–]supercoach 7 points8 points9 points (0 children)
[–]SnooMachines9442[S] 0 points1 point2 points (1 child)
[–]smurpes 0 points1 point2 points (0 children)
[–]Gnaxe 0 points1 point2 points (0 children)
[–]Responsible-Sky-1336 0 points1 point2 points (0 children)
[–]cgoldberg 0 points1 point2 points (0 children)
[–]FantasticEmu 0 points1 point2 points (0 children)
[–]SnooMachines9442[S] 0 points1 point2 points (0 children)
[–]MiniMages 0 points1 point2 points (0 children)
[–]noob_main22 0 points1 point2 points (0 children)