No video

Clean New Projects with venv - Virtual Environments

  Рет қаралды 13,125

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

Пікірлер: 37
@proterotype
@proterotype Жыл бұрын
Virtual environments are just starting to become clear to me. Thanks for helping solidify it even more
@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`
@cmrncrick
@cmrncrick Жыл бұрын
I learn so much from each and every video you put out. Thank you for such great content!!!
@its_me_tabs
@its_me_tabs 3 ай бұрын
As a junior engineer, I have always thought virtual environments were unnecessary noise, I just recently realised how important they are.
@TheTomorrowDream
@TheTomorrowDream Ай бұрын
Very well explained, thanks!
@sherlynhuso4363
@sherlynhuso4363 6 ай бұрын
I was having problems with some dependencies, thank you very much for the super clear and concise video !
@my_yt_
@my_yt_ 3 ай бұрын
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.
@zulucharlie5244
@zulucharlie5244 11 ай бұрын
Your channel is a wealth of extremely useful and clearly presented information. Thank you very much.
@kishore2137
@kishore2137 6 ай бұрын
really help full thanks
@khandoor7228
@khandoor7228 Жыл бұрын
Love your channel bro!
@FishKungfu
@FishKungfu 3 ай бұрын
Great helpful video!
@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
@ingokaminski935
@ingokaminski935 Жыл бұрын
You have also a video about poetry... What would you use? Poetry or venv? Thanks.
@CanDoSo_org
@CanDoSo_org 9 ай бұрын
Thanks. Could you please explain a little more on how to set virtual python environment in Rstudio?
@zulfugarabdullayev1977
@zulfugarabdullayev1977 Жыл бұрын
Very useful video, thank you very much!
@luxecutor
@luxecutor 4 ай бұрын
N00b question, but would I clone the project to the .venv folder or the 'Project1' folder than .venv is in?
@mitchhudsonmusic
@mitchhudsonmusic Жыл бұрын
Great tutorial! Thanks!
@johnsonofjohn1678
@johnsonofjohn1678 Жыл бұрын
Excellent. Thanks!
@elatedbento
@elatedbento Жыл бұрын
Great content as usual! Do you mind sharing the wallpaper, pls?
@NeuralNine
@NeuralNine Жыл бұрын
It's a default Pop!_OS wallpaper
@sularaperera2719
@sularaperera2719 11 ай бұрын
Awesome thanks. Btw is docker is the way to go? Can you pls show us ? Thanks heaps 😊
@damadorpl
@damadorpl Жыл бұрын
venv for binaries / packages and env for env constants / keys etc
@maciekcieslik8433
@maciekcieslik8433 8 ай бұрын
great video!
@mikejohnston9113
@mikejohnston9113 Жыл бұрын
great tutorial. Thanks
@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 11 ай бұрын
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 11 ай бұрын
@@ddjazz yeah that's it, thank u sm
@yashjha7152
@yashjha7152 Жыл бұрын
Very informative! How is Pop OS btw?
@abdulwaleedjulaid5491
@abdulwaleedjulaid5491 11 ай бұрын
Please zoom your work not to see
@henrischomacker6097
@henrischomacker6097 10 ай бұрын
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 3 ай бұрын
"11"! - america is showing what it is!
@entrprnrtim
@entrprnrtim 11 ай бұрын
"source .venv/bin/activate" Doesn't work on Windows. Any suggestions?
@entrprnrtim
@entrprnrtim 11 ай бұрын
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 10 ай бұрын
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 5 ай бұрын
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
Рет қаралды 341 М.
How to Create and Use Virtual Environments in Python With Poetry
14:43
Harley Quinn's plan for revenge!!!#Harley Quinn #joker
00:49
Harley Quinn with the Joker
Рет қаралды 32 МЛН
ПОМОГЛА НАЗЫВАЕТСЯ😂
00:20
Chapitosiki
Рет қаралды 28 МЛН
OMG what happened??😳 filaretiki family✨ #social
01:00
Filaretiki
Рет қаралды 12 МЛН
Manage Multiple Python Versions with PyEnv
9:54
NeuralNine
Рет қаралды 19 М.
Understanding stdin, stdout, stderr in Python
11:53
NeuralNine
Рет қаралды 12 М.
Essential AI prompts for developers
8:31
Visual Studio Code
Рет қаралды 54 М.
Virtual Environments in Python - Crash Course
13:33
NeuralNine
Рет қаралды 91 М.
Garbage Collection in Python: Speed Up Your Code
16:41
NeuralNine
Рет қаралды 15 М.
Python Virtual Environments - Full Tutorial for Beginners
9:05
Tech With Tim
Рет қаралды 64 М.
Makefiles in Python For Professional Automation
13:43
NeuralNine
Рет қаралды 41 М.
Professional Dependency Management with Pipfiles
11:17
NeuralNine
Рет қаралды 12 М.
5 Useful F-String Tricks In Python
10:02
Indently
Рет қаралды 296 М.
Harley Quinn's plan for revenge!!!#Harley Quinn #joker
00:49
Harley Quinn with the Joker
Рет қаралды 32 МЛН