I opened my Command Line and put it in and then got a response of "'Set-ExecutionPolicy' is not recognized as an internal or external command, operable program or batch file." However, when I put the same thing into the CMD in VSCode, it worked, no problem. I was having an error activating my venv and after a quick google search I found I needed to type "Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted" in order to get around this. If I'm creating a virtual environment in the first place, why would I need to activate it and then deactivate it? If I can just switch folders into another project outside of the virtual environment, what would be a case where in the middle of a project I would be like "shoot, let me leave my virtual environment" and then go "ok, now I want to go back into my virtual environment".įinally, I'm still getting tripped over my Command Line vs IDE. What is the syntax behind python -m venv venv? I'm assuming the -m has something to do with modules, but I'm confused on why I needed to type venv twice. What is the difference between the Command Line and a Command Line prompt? Also, what is a succinct way to define "Terminal"? In your previous comment, you wrote that "VS Code gives you access to a built-in terminal which runs a Command Line prompt". You're the bomb, thank you for breaking it down! Got some more questions for you, though: This SO article breaks it down pretty well. There must be a file called _init_.py in order for the Python interpreter to use the package correctly, though this file can be completely blank.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |