For those missing green (venv). Solution: after you have typed the command "python -m venv ..." and have hit enter as my man Aditya does at 2:05 and have waited for it to make the venv directory, type into the terminal the following line: venv\scripts\activate and hit enter. Done. You should now how the green (venv) and be working with your virtual environment. !!ERROR!! If an error pops up about permissions or access being denied or something, go ahead and type into the terminal (you might want to reverse this change after you have done it btw, so read about this if you concerned): Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process and try executing "venv\scripts\activate" in the terminal again. !!ADDITIONAL POSSIBLE FIXES!! - make sure you're terminal is working in the correct directory (for example: C:\Users\Asus\Desktop\Project>) before executing "venv\scripts\activate"
Hey bro, thank you! May I know what 'Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process' does, please? Also, do you know how to revert back, please? Thank you :)
@@tanushsavadi988 I can’t give you a high level answer to this question, however, I can tell you for sure that it grants you permission to execute scripts. The -scope process makes it so that this permission is returned to its default value as soon as you’re done with whatever you’re currently doing. If you want to permanently grant yourself permission to execute these scripts, you just have to remove the “-scope process” part. In summary, you can using that command without worrying because all is returned to its original state after you’ve used venv\scripts\activate ;)
Thanks so much, i´ve been trying to solve this for ages and your tutorial was the first that i found that was intuitive and easy to follow, keep up the good work!
Thank you for this! I was following a Python tutorial, but I didn't want to use a new editor. I was having issues using Python modules until watching this.
Thank you, brother. I couldn't solve this same problem but with Numpy. The bookcase was underlined in yellow and I couldn't execute my arrangement. Now with your steps I managed to execute my script. Thank you!!
thank you very much, it worked first time for me. I remember needing to do this in the spyder IDE but either it was easier or I had a teacher holding my hand the whole way
bro huge thx its 5 pm i was trying to execute my project from morning itself but again n again m getting same error ,, but after watching this tutorial i got to know virtual environment is must thing thx buddy again (i m new to python )
If anyone is having trouble with installing using pip install ... First upgrade pip: py -m pip install --upgrade pip Otherwise, thanks so much Aditya! My man
Hi Aditya, thank you for the tutorial. When I follow your instruction and try to create ve, console says that my command not found. I just started using VS and probably I am missing some extensions?
If VS Code is still throwing an error about the library import, make sure you select the correct interpreter (CTRL+SHIFT+P) and type "Interpreter" and choose the correct one.
Hi thanks for the short video clip. I created virtual environment with your method, but it cannot activate like a green color on your screen (venv). Can you please let me know how can I activate it?
Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases. bro i am facing this error . can someone assist me on how to fix it?
I've got an error when I try to install the venv, it's say : Python was not found. I'ld like to install pandas, numpy etc but I can't find a solution. Thank you
Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases. Sir What i Do?
Thank you for the tutorial very simple to understand. However I have a question, do we do this for all of our projects or is there a way you can store the modules once so that you can use them again?
When I tried to install a some library using "pip" comand, this message appears in yellow: "WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available". I'm using windows 10.
that did not work for me, but something else did, i clicked on Activate.ps1 under Scripts under Project and ran the entire file and the green (.venv) suddenly appeared that did not work for me, but something else did, i clocked on Activate.ps1 under Scripts under Project and ran the entire file and the green (.venv) suddenly appeared
When I type it in the make a virtual environment I get pyhon : The term 'pyhon' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + pyhon -m venv C:\Users\Mayeu\OneDrive\Desktop\VSC\venv + ~~~~~ + CategoryInfo : ObjectNotFound: (pyhon:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
I did as same as you but, when I type " pip install numpy ", it said Fatal error in launcher: Unable to create process using '"C:\Users\DIEN\Desktop\hk2 2022-2023\2022-2023\venv\bin\python.exe" "C:\Users\DIEN\Desktop\hk2_22-23\venv\bin\pip.exe" install numpy': The system cannot find the file specified.
I've to repeat every time i need those packages this procedure with venv? Or it has to be done just once and i can use such packages. Thank you in advance bro.
Thank you for this, really helpful. Wanted to ask about anaconda along with vs code; thought downloading anaconda brings all the libraries and no need for individual pip installs. First is that true? If yes how to get anaconda support in vs code? Of not, is there a shorter way to get all or most libraries in one go instead of one by one pip install into the venv?
If you are still having errors after performing everything then , actually python 3.9 and 3.10 might have some issue installing libraries, so try installing an older version like 3.8
hey i think i have this problem because after doing all like the video python still say me that he don't find matplotlib, so how can i install an older version please ?
Bro i am having a problem .. turtle graphic screen is not visible on screen in vs code. as i am running my program that graphic screen comes for mili second and then disappears . plz help
How to fix this error? Error: Command '['E:\\Visual\\Scripts\\python.exe', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 101.
How can I solve this problem? venv\script\activate : The module 'venv' could not be loaded. For more information, run 'Import-Module venv'. At line:1 char:1 + venv\script\activate + ~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (venv\script\activate:String) [], CommandNotFoundException + FullyQualifiedErrorId : CouldNotAutoLoadModule
You don't have to spell out the entire path of the venv folder. You can just type ".venv". This works because '.' is macro for current working directory's absolute path. So, the command should be "python -m venv .venv". Another tip: if you're on Windows and you’ve used the official python installer, there should be a py.exe in your system path. You can use py the same way you use the python exe, it's purpose is to automatically select the most up to date python installed on your system. This isn’t relevant to the video as much but I thought this was something everyone should know.
Error: Command '['C:\\Users\\Pc\\Desktop\\family\\Scripts\\python.exe', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1. PS C:\Users\Pc\Desktop\family files\mrinal\Python> it is showing this error can you help me out
After I have typed the command "python -m venv ..." and hit enter, I got a message that said "Python sa nena". The venv folder does not create and installing module does not work Pls help
Hi Aditya, i am getting following error. The term 'phyton' is not recognized as the name of a cmdlet, function, script file, or op erable program. Check the spelling of the name, or if a path was included, verify that th e path is correct and try again. At line:1 char:7 + phyton
I couldn't get it, you simply went and made a new terminal and (venv) popped up. On mine there wasn't. Was there more that you cut out or was that it, because no work.