Тёмный

Clean New Projects with venv - Virtual Environments 

NeuralNine
Подписаться 356 тыс.
Просмотров 13 тыс.
50% 1

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.com/books/
💻 The Algorithm Bible Book: www.neuralnine.com/books/
👕 Programming Merch: www.neuralnine.com/shop
💼 Services 💼
💻 Freelancing & Tutoring: www.neuralnine.com/services
🌐 Social Media & Contact 🌐
📱 Website: www.neuralnine.com/
📷 Instagram: / neuralnine
🐦 Twitter: / neuralnine
🤵 LinkedIn: / neuralnine
📁 GitHub: github.com/NeuralNine
🎙 Discord: / discord

Наука

Опубликовано:

 

9 авг 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 37   
@proterotype
@proterotype 11 месяцев назад
Virtual environments are just starting to become clear to me. Thanks for helping solidify it even more
@TheTomorrowDream
@TheTomorrowDream 12 дней назад
Very well explained, thanks!
@cmrncrick
@cmrncrick 11 месяцев назад
I learn so much from each and every video you put out. Thank you for such great content!!!
@its_me_tabs
@its_me_tabs 2 месяца назад
As a junior engineer, I have always thought virtual environments were unnecessary noise, I just recently realised how important they are.
@sherlynhuso4363
@sherlynhuso4363 5 месяцев назад
I was having problems with some dependencies, thank you very much for the super clear and concise video !
@kishore2137
@kishore2137 5 месяцев назад
really help full thanks
@mitchhudsonmusic
@mitchhudsonmusic 11 месяцев назад
Great tutorial! Thanks!
@zulucharlie5244
@zulucharlie5244 11 месяцев назад
Your channel is a wealth of extremely useful and clearly presented information. Thank you very much.
@khandoor7228
@khandoor7228 11 месяцев назад
Love your channel bro!
@johnsonofjohn1678
@johnsonofjohn1678 11 месяцев назад
Excellent. Thanks!
@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.
@zulfugarabdullayev1977
@zulfugarabdullayev1977 11 месяцев назад
Very useful video, thank you very much!
@mikejohnston9113
@mikejohnston9113 11 месяцев назад
great tutorial. Thanks
@FishKungfu
@FishKungfu 3 месяца назад
Great helpful video!
@maciekcieslik8433
@maciekcieslik8433 7 месяцев назад
great video!
@maxs.8146
@maxs.8146 11 месяцев назад
Great explanation on how to create a virtual environment. I am wondering where the advantages or disadvantages are of using conda
@luxecutor
@luxecutor 3 месяца назад
N00b question, but would I clone the project to the .venv folder or the 'Project1' folder than .venv is in?
@sularaperera2719
@sularaperera2719 10 месяцев назад
Awesome thanks. Btw is docker is the way to go? Can you pls show us ? Thanks heaps 😊
@yashjha7152
@yashjha7152 11 месяцев назад
Very informative! How is Pop OS btw?
@ingokaminski935
@ingokaminski935 11 месяцев назад
You have also a video about poetry... What would you use? Poetry or venv? Thanks.
@mrwilson2465
@mrwilson2465 11 месяцев назад
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`
@damadorpl
@damadorpl 11 месяцев назад
venv for binaries / packages and env for env constants / keys etc
@CanDoSo_org
@CanDoSo_org 9 месяцев назад
Thanks. Could you please explain a little more on how to set virtual python environment in Rstudio?
@djalalmaster1018
@djalalmaster1018 11 месяцев назад
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 10 месяцев назад
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 10 месяцев назад
@@ddjazz yeah that's it, thank u sm
@elatedbento
@elatedbento 11 месяцев назад
Great content as usual! Do you mind sharing the wallpaper, pls?
@NeuralNine
@NeuralNine 11 месяцев назад
It's a default Pop!_OS wallpaper
@abdulwaleedjulaid5491
@abdulwaleedjulaid5491 11 месяцев назад
Please zoom your work not to see
@henrischomacker6097
@henrischomacker6097 9 месяцев назад
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.
@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 9 месяцев назад
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
@xx8031
@xx8031 3 месяца назад
"11"! - america is showing what it is!
@-Barny
@-Barny 4 месяца назад
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
СЛУЧАЙ В ЧЕРНОБЫЛЕ😰#shorts
00:19
Просмотров 327 тыс.
The most important Python script I ever wrote
19:58
Просмотров 173 тыс.
Virtual Environments in Python - Crash Course
13:33
Просмотров 89 тыс.
Argument Parsing with argparse in Python
11:27
Просмотров 13 тыс.
How to Use Poetry in Python to avoid Dependency Hell
20:21
Professional Dependency Management with Pipfiles
11:17
Build Anything With ChatGPT, Here’s How
1:24:05
Просмотров 1 млн
venv / Virtual Environments in Python (Python Part 7)
50:35
Manage Multiple Python Versions with PyEnv
9:54
Просмотров 18 тыс.