Clean New Projects with venv - Virtual Environments

  Рет қаралды 14,846

NeuralNine

NeuralNine

Күн бұрын

In this video we learn how to properly create new Python projects with virtual environments and venv.
◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚
🐍 The Python Bible Book: www.neuralnine...
💻 The Algorithm Bible Book: www.neuralnine...
👕 Programming Merch: www.neuralnine...
💼 Services 💼
💻 Freelancing & Tutoring: www.neuralnine...
🌐 Social Media & Contact 🌐
📱 Website: www.neuralnine...
📷 Instagram: / neuralnine
🐦 Twitter: / neuralnine
🤵 LinkedIn: / neuralnine
📁 GitHub: github.com/Neu...
🎙 Discord: / discord

Пікірлер: 42
@proterotype
@proterotype Жыл бұрын
Virtual environments are just starting to become clear to me. Thanks for helping solidify it even more
@kcmichaelm
@kcmichaelm 2 ай бұрын
This was a very helpful and clear video. I don't know why venv was so complicated to me previously.
@NeuralNine
@NeuralNine 2 ай бұрын
Glad it helped!
@sherlynhuso4363
@sherlynhuso4363 Жыл бұрын
I was having problems with some dependencies, thank you very much for the super clear and concise video !
@cmrncrick
@cmrncrick Жыл бұрын
I learn so much from each and every video you put out. Thank you for such great content!!!
@chill__guy-r2f
@chill__guy-r2f 8 ай бұрын
As a junior engineer, I have always thought virtual environments were unnecessary noise, I just recently realised how important they are.
@kishore2137
@kishore2137 Жыл бұрын
really help full thanks
@anirbellahcen5551
@anirbellahcen5551 4 ай бұрын
Thank you for your precise and informative contents. Just please try to zoom in a bit your terminal next time so the commands can be more clear. Thank you again.
@TheTomorrowDream
@TheTomorrowDream 6 ай бұрын
Very well explained, thanks!
@khandoor7228
@khandoor7228 Жыл бұрын
Love your channel bro!
@zulucharlie5244
@zulucharlie5244 Жыл бұрын
Your channel is a wealth of extremely useful and clearly presented information. Thank you very much.
@mrwilson2465
@mrwilson2465 Жыл бұрын
Bonus info: from Python 3.9 it'll be nice to supplement the virtual environment creation with the optional argument `--upgrade-deps` as it'll update pip setuptools to the latest version in PyPI. It would be: `python3 -m venv .venv --upgrade-deps`
@FishKungfu
@FishKungfu 9 ай бұрын
Great helpful video!
@sularaperera2719
@sularaperera2719 Жыл бұрын
Awesome thanks. Btw is docker is the way to go? Can you pls show us ? Thanks heaps 😊
@ingokaminski935
@ingokaminski935 Жыл бұрын
You have also a video about poetry... What would you use? Poetry or venv? Thanks.
@zulfugarabdullayev1977
@zulfugarabdullayev1977 Жыл бұрын
Very useful video, thank you very much!
@mitchhudsonmusic
@mitchhudsonmusic Жыл бұрын
Great tutorial! Thanks!
@maxs.8146
@maxs.8146 Жыл бұрын
Great explanation on how to create a virtual environment. I am wondering where the advantages or disadvantages are of using conda
@johnsonofjohn1678
@johnsonofjohn1678 Жыл бұрын
Excellent. Thanks!
@fredrikbergquist5734
@fredrikbergquist5734 2 күн бұрын
I have tried to send requirements.txt to a friend but one install breaks when running it. I think it is because his main ubuntu python version doesn’t match my main ubuntu python version. What do you think of this? When he tried to change this main python version his desktop stopped working and then when rebooted it hung on the start of the desktop.
@my_yt_
@my_yt_ 9 ай бұрын
Windows 10 (Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted) then I ran Scripts/activate from a test folder on the Windows Desktop test folder I manually created. I ran this in an instance of Administrator: Windows Powershell. Then, Golden.
@maciekcieslik8433
@maciekcieslik8433 Жыл бұрын
great video!
@yashjha7152
@yashjha7152 Жыл бұрын
Very informative! How is Pop OS btw?
@mikejohnston9113
@mikejohnston9113 Жыл бұрын
great tutorial. Thanks
@luxecutor
@luxecutor 10 ай бұрын
N00b question, but would I clone the project to the .venv folder or the 'Project1' folder than .venv is in?
@elatedbento
@elatedbento Жыл бұрын
Great content as usual! Do you mind sharing the wallpaper, pls?
@NeuralNine
@NeuralNine Жыл бұрын
It's a default Pop!_OS wallpaper
@scharif
@scharif 5 ай бұрын
Do you commit the Virtual environment folder to Github? that sounds weird. Could you explain how you deal with that please? Do you have to remember to put it in the gitignore? isnt there a better way?
@djalalmaster1018
@djalalmaster1018 Жыл бұрын
Very informative video, but still have a question? If you want to work with a previously created virtual environment in a new project, how to make that if you're using a text editor
@ddjazz
@ddjazz Жыл бұрын
In your new project folder python3 -m venv .venv and activate it , then install the requirements.txt from your previous project as shown in the video
@djalalmaster1018
@djalalmaster1018 Жыл бұрын
@@ddjazz yeah that's it, thank u sm
@CanDoSo_org
@CanDoSo_org Жыл бұрын
Thanks. Could you please explain a little more on how to set virtual python environment in Rstudio?
@damadorpl
@damadorpl Жыл бұрын
venv for binaries / packages and env for env constants / keys etc
@abdulwaleedjulaid5491
@abdulwaleedjulaid5491 Жыл бұрын
Please zoom your work not to see
@henrischomäcker
@henrischomäcker Жыл бұрын
I am sorry, but I am almost in a rage now... This is the fourth video I watched now while the last hour and all were completely useless. Why do you all wanna was our time? - And now? Now I have kind of second /usr/lib/python/dist-packages dir. - And how should my project1.py program file in my Project1 project directory use it? If I start my program like ./project1.py my OS python installation with it's libraries is still used. Not one word about how to use the new .venv. I just wasted one hour of watching your's and your colleague's videos not mentioning how to use and not administer a venv. One thumb down.
@xx8031
@xx8031 9 ай бұрын
"11"! - america is showing what it is!
@entrprnrtim
@entrprnrtim Жыл бұрын
"source .venv/bin/activate" Doesn't work on Windows. Any suggestions?
@entrprnrtim
@entrprnrtim Жыл бұрын
If you're on Windows and having trouble activating your virtual environment. The user account you're using may be restricted from running scripts on the desktop. Here's the code that solved it for me: Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted From there, you can pick up with "Scripts\activate" command next.
@Jucidful
@Jucidful Жыл бұрын
I guess you've already found the solution, but it could be useful to other people : .venv\Script\activate.bat This is the way to activate virtual environment on Windows CMD
@-Barny
@-Barny 11 ай бұрын
Guys, help me pls: (.venv) (.venv) barny-1111-11111% deactivate (.venv) barny-1111-11111% deactivate (.venv) barny-1111-11111% deactivate zsh: command not found: deactivate What is the problem? Why do i see that second vevn when im not under the venv? How can i remove it?
The Complete Guide to Python Virtual Environments!
15:52
teclado
Рет қаралды 385 М.
How to Create and Use Virtual Environments in Python With Poetry
14:43
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН
Large AI Models on Multiple Serverless GPUs in Python
30:29
NeuralNine
Рет қаралды 1,4 М.
Virtual Environments in Python - Crash Course
13:33
NeuralNine
Рет қаралды 99 М.
The most important Python script I ever wrote
19:58
John Watson Rooney
Рет қаралды 215 М.
Garbage Collection in Python: Speed Up Your Code
16:41
NeuralNine
Рет қаралды 19 М.
virtualenv vs. venv (beginner - intermediate) anthony explains #040
11:22
anthonywritescode
Рет қаралды 45 М.
What is a Virtual Environment in Python?
8:53
Sam Westby Tech
Рет қаралды 8 М.
Manage Multiple Python Versions with PyEnv
9:54
NeuralNine
Рет қаралды 26 М.
Pyinstaller with Virtual Environments (venv)
16:38
CodersLegacy
Рет қаралды 14 М.
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН