PyCharm Virtual Environments (venv) Explained! | 10 Min. | Updated 2023

Sdílet
Vložit
  • čas přidán 3. 08. 2024
  • Learn to use virtual environments in PyCharm within 10 Minutes!
    🔍 PyCharm Tutorial Playlist: • PyCharm Tutorials
    ⌚ Timestamps ⌚
    00:00 | Two Methods of Creating a Virtual Environment (venv)
    00:16 | Method 1: New Project with a Virtual Environment
    01:34 | Method 2: Adding a Virtual Environment to Existing Projects
    02:53 | Activating a Virtual Environment
    06:11 | Error: "Activate.ps1 cannot be loaded because running scripts is disabled"
    06:40 | Deactivate a Virtual Environment
    06:58 | Installing Modules with PIP in a Virtual Environment
    08:07 | Local Venv Modules vs. Global Modules
    🌟 Please leave a LIKE and SUBSCRIBE for more! 🌟
    ◾◾◾◾◾ PyCharm Tutorials ◾◾◾◾◾
    🐍 Install PyCharm & Python: • Install PyCharm & Pyth...
    💿 PyCharm Basics in 10 Min.: • PyCharm Tutorial | Int...
    ◾◾◾◾◾ Learn Python ◾◾◾◾◾
    🙂 Pygame Basics Series: • Pygame Tutorial - Intr...
    🐺 Pygame Advanced Series: • Chrome Dinosaur in Pyt...
    🤖 Python A.I. Series: • Video
    ◾◾◾◾◾ 🌎 Let's Connect! ◾◾◾◾◾
    🐦 Twitter (X): 🔗 / @max_on_tech
    📂 GitHub: 🔗 github.com/maxontech
    🔊 Discord: 🔗 / discord
    🏹 ProductHunt: 🔗 www.producthunt.com/@m4x
    ✅ Blog: 🔗 maxontech.io/courses
    ◾◾◾◾◾ Hashtags ◾◾◾◾◾
    #PyCharm #Debug #Tutorial #Python

Komentáře • 210

  • @janekschleicher9661
    @janekschleicher9661 Před 8 měsíci +9

    Something worth to mention is also that the pip in the virtual environment is a different one than the pip in the global environment. That's why you can also see a pip.exe in the venv directory in 4:28.
    You don't always see the prompt (venv), indeed, that's quite common with customized shells with restrictions in corporate environment, but you still can find out which pip is relevant with `which pip` and then see the full path to it (either to global pip or to venv pip).
    In addition, very often in Windows/corporate environment, you'll have to work with conda and pip together and then in a conda environment (what is then the necessary replacement for the virtualenv), you even have to first `conda activate ` and then run a `conda install pip` first, to have a pip in this environment (and otherwise, the global pip is silently taken without any notice about). And that's hard to debug if you are not aware that there might be different pip's (different locations, in different versions and with different behaviour, especially different install destinations, ...).
    And while conda+pip together might not be so often, you'll often enough be in a situation where the PATH variable is not correctly set and then again silently the global pip instead of the local venv pip will be taken. Happens remote, in a CI/CD or outside of PyCharm, e.g. in CygWin or WSL2 often enough ...
    I know it, because I often have to trouble shoot juniors 🙂in such situations.

  • @user-bh5no4ke4i
    @user-bh5no4ke4i Před 9 měsíci +26

    Let me explain why you did a GREAT job? Someone who has clicked on your tutorial most likely is not a graduate coder as such, slow, methodical, hold your hand approach is how we can learn and you nailed it. Great Great video and of course I subscribed. Keep up the excellent work.

    • @MaxOnTech
      @MaxOnTech  Před 9 měsíci +1

      hey, this is very encouraging! Thanks a lot!

    • @ROBROB301
      @ROBROB301 Před 4 měsíci

      You’re actually describing me - I’ve watched various videos and read articles, this was the first one that really made sense.

    • @josephomondi629
      @josephomondi629 Před 11 dny

      This helped a lot. I'm not a graduate programmer. I was walking in the dark when I stumbled upon this and it changed my life. I realized every project I had created on my pycharm didn't have a virtual environment and it was causing problems for me running them in the cmd. Kudos

  • @ojinwayoonyeze3864
    @ojinwayoonyeze3864 Před 7 měsíci +3

    Guess what? Until this video, I get lost each time I launch pycharm.Great job, we need teachers like u, so passionate! You made my 2023 a great one at last.

    • @MaxOnTech
      @MaxOnTech  Před 7 měsíci +1

      Hey, thanks! That's very encouraging :)

  • @GoranMaricgocamaaric
    @GoranMaricgocamaaric Před rokem +6

    THAAAAAAAAAAAANKKKK YOUUUU! Short and clear, like it should be. Today I was messing around with it for about 4 hours and after 10 minutes of your video I finally get it. :)

    • @MaxOnTech
      @MaxOnTech  Před rokem +1

      Welcome :) let me know if there are any other topics that i should cover.

  • @ilzamwahyu
    @ilzamwahyu Před 2 měsíci +1

    I was lost with PyCharm, this video helped me! Thanks Max!

  • @beomseokpark1500
    @beomseokpark1500 Před 4 měsíci

    Thank you so much! Most videos just showed the steps but you articulate everything under the hood. Amazing job!

    • @MaxOnTech
      @MaxOnTech  Před 3 měsíci

      awesome! hope it helped you understand everything:)

  • @MADhatter_AIM
    @MADhatter_AIM Před rokem +2

    Very good, simple and clear, direct to the point ! Thanks

  • @alansharedmenesescarbajal1921
    @alansharedmenesescarbajal1921 Před 10 měsíci

    Amazing video, simple yet complete. Keep up the good work!

    • @MaxOnTech
      @MaxOnTech  Před 10 měsíci

      glad it helps people out there! all the best to you!

  • @alananalyst7795
    @alananalyst7795 Před rokem

    I was struggling with these, after watching this, everything is making sense, thanks!!

    • @MaxOnTech
      @MaxOnTech  Před rokem

      Hey, that's awesome! Glad it helped!

  •  Před 5 měsíci

    Man you have a natural gift for this! Thanks a lot!

    • @MaxOnTech
      @MaxOnTech  Před 5 měsíci

      thanks a lot! hope it helps :)

  • @KpxUrz5745
    @KpxUrz5745 Před 2 měsíci

    Thanks. Every basic video helps. Compared to all the programming I've done in the past, I am finding python exasperatingly confusing in many regards, despite all the books I am reading.

  • @toddprickett6376
    @toddprickett6376 Před rokem

    A very succinct tutorial! Thanks. Solved my venv problem.

  • @LemonGuy1
    @LemonGuy1 Před 6 měsíci

    Finally, it all made clear!! Thank you so much ❤

  • @romankolosov5771
    @romankolosov5771 Před 2 měsíci

    thanks! concise and clear tutorial.

  • @Graidex
    @Graidex Před 3 měsíci

    really helped me understand each and everything perfectly. thanks

    • @MaxOnTech
      @MaxOnTech  Před 2 měsíci +1

      hey, thanks, that's awesome:)

  • @daniellehotsky1776
    @daniellehotsky1776 Před měsícem

    Thank you very much that you included that Windows Error and solution. It drove me crazy. Now it works. Thank you, man. Subscribed. :)

    • @MaxOnTech
      @MaxOnTech  Před 22 dny

      yes, it rarely happens, really useful for that handful of people who get that error.

  • @_mulla_
    @_mulla_ Před rokem

    Thank youuu, I kept trying to figure this out and couldn't until i found your video

  • @dustybrown4599
    @dustybrown4599 Před 11 měsíci

    Thanks! This was exactly what I needed.

  • @Matt-iy2cf
    @Matt-iy2cf Před 9 měsíci

    Very clear explanation. Much appreciated!

  • @slavago1266
    @slavago1266 Před rokem +1

    Thank you for such a helpful video about virtual environments! It helps me reload my Python programming journey!

  • @davidschroeder2732
    @davidschroeder2732 Před rokem

    Outstanding explanation of venv. Best I've seen after having explored several other explanations..

    • @MaxOnTech
      @MaxOnTech  Před rokem

      awesome. feel free to let me know what else I should cover

  • @Mr6499
    @Mr6499 Před 8 měsíci +1

    This has been extremely helpful to me. Thank you

  • @keyvanpfannenschmidt
    @keyvanpfannenschmidt Před 2 měsíci

    That was sooooo helpful. Thank you so much!

  • @sprinter5901
    @sprinter5901 Před rokem

    Great tutorial. I had that PS script issue and this video helped me solve it.

  • @favourwilliams7319
    @favourwilliams7319 Před rokem +1

    thank you so much...
    very simple and clear

  • @user-ll8hv2vs1l
    @user-ll8hv2vs1l Před 7 měsíci

    this fixed my issue, thank you so much

  • @stefklaric
    @stefklaric Před rokem

    This was very easy to follow, thanks

  • @alexramos587
    @alexramos587 Před 11 měsíci +1

    Very good tutorial. Thank you, Max.

  • @alizeshan6432
    @alizeshan6432 Před 7 měsíci

    Thanks man! Your solution was clear and precise. Worked perfectly for me. 👍

    • @MaxOnTech
      @MaxOnTech  Před 7 měsíci +1

      Awesome :) Glad it helped!

  • @MushroomPower84
    @MushroomPower84 Před rokem

    Thank you so much! Finally I've found your video and my first venv project just got activated. (have been trying for hours :$)

    • @MaxOnTech
      @MaxOnTech  Před rokem +1

      Hey, that's awesome :) glad it helped!

  • @radka4244
    @radka4244 Před 8 měsíci

    thank you so much for this video!

  • @abdulquadhiersuhail5215

    Thank you so much for your help 😇 and you save me from anxiety !

    • @MaxOnTech
      @MaxOnTech  Před rokem +1

      Hey, glad to hear it helped you :))

  • @matthewm9595
    @matthewm9595 Před 8 měsíci +1

    very clear tutorial, great job

  • @user-fi8cg4bb1z
    @user-fi8cg4bb1z Před 10 měsíci

    Thank you so much for sharing!!!

  • @mahendraverma2826
    @mahendraverma2826 Před 7 měsíci

    this tutorials help's me a lot thank you Max

  • @mettasatishkumar
    @mettasatishkumar Před 7 měsíci

    Excellent, thank you

  • @elie1943
    @elie1943 Před rokem

    Thank you so much! Very helpful

  • @vitorniskier
    @vitorniskier Před 6 měsíci

    Great video!!

  • @davidwang8971
    @davidwang8971 Před rokem

    this is awesome, thank you so much!

  • @MrNess2911
    @MrNess2911 Před rokem

    Thank you very, very much for your crystal clear explanation 😊

  • @ALVINMAN452
    @ALVINMAN452 Před rokem

    Many thanks. you help me with your video.

    • @MaxOnTech
      @MaxOnTech  Před rokem +1

      that's awesome! Let me know if there's anything else you want me to cover.

  • @aizazahmedsahito1240
    @aizazahmedsahito1240 Před 7 měsíci

    Your way of explaining things is very good and understandable, clearly explained everything in detail for me I am a beginner and it helped me a lot. thanks

    • @MaxOnTech
      @MaxOnTech  Před 7 měsíci

      that's awesome! thanks a lot!

  • @joeking5211
    @joeking5211 Před rokem +3

    That was presented as a master class, thank you for your clear no frills direct tutorial, absolutely superb, will look at any other vid's you may have. Keep up the good work.

    • @MaxOnTech
      @MaxOnTech  Před rokem

      Thanks :) always enjoy reading these types of comments!

  • @pooryaomidi8637
    @pooryaomidi8637 Před 9 měsíci

    Great 👏🏻

  • @user-gy7om8ih9q
    @user-gy7om8ih9q Před rokem

    thank you, other videos were showing on how to do it on cmd and i was confused. i didnt know there was a terminal in pycharm. video is really helpful.

  • @dianajoseph5102
    @dianajoseph5102 Před 6 měsíci

    Thank you for this simple yet effective video. Your explaining is great keep it up🙂

    • @MaxOnTech
      @MaxOnTech  Před 6 měsíci

      Hi Diana :) thanks for the kind words. All the best, Max

  • @mohammadzahidkamal8775
    @mohammadzahidkamal8775 Před 9 měsíci

    ..great explanation..

  • @kabel-cb4lx
    @kabel-cb4lx Před 4 měsíci

    GREAT!!

  • @jays12345
    @jays12345 Před rokem

    Thank you. a great help to beginners in python like me.

  • @chamikamac
    @chamikamac Před 3 měsíci

    Great video :)

    • @MaxOnTech
      @MaxOnTech  Před 3 měsíci

      Thanks! glad these videos help :)

  • @user-jc3gx2mj9u
    @user-jc3gx2mj9u Před 9 měsíci

    Thank You sir!

  • @user-gk3gl7jl2p
    @user-gk3gl7jl2p Před 8 měsíci

    thank u very much!!!!!!😊😊👌👌👍👍 PERFECT!

  • @jm-xv3wh
    @jm-xv3wh Před 28 dny

    Thanks Max It is great video , very informative for us

    • @MaxOnTech
      @MaxOnTech  Před 22 dny

      hey :) glad it's still helpful

  • @stevieboi61
    @stevieboi61 Před 10 měsíci

    thankyou bro!👍🏼

  • @pauledukere8353
    @pauledukere8353 Před rokem

    Helpful.. thanks

  • @gouseshaikh4840
    @gouseshaikh4840 Před 2 měsíci

    Great

  • @tusdhu
    @tusdhu Před 6 měsíci

    Thank you✌

  • @shaikhsufi4541
    @shaikhsufi4541 Před 8 měsíci +2

    thank you brother

  • @pramodhr7676
    @pramodhr7676 Před rokem

    Thnaks a lot. Hepled me!!!!!! you gained one subscriber

  • @call-me-potato.
    @call-me-potato. Před 8 měsíci

    thanks thanks for excellent tutorial.

  • @SofianMW
    @SofianMW Před 6 měsíci

    thanks!

  • @prakashpokhrel1170
    @prakashpokhrel1170 Před 11 měsíci

    Thanks you alot ❤❤❤❤ love you from nepal. Its really helped me alot.

    • @MaxOnTech
      @MaxOnTech  Před 11 měsíci

      That's awesome! Happy to help!

  • @dddd-ci2zm
    @dddd-ci2zm Před rokem

    Great!

    • @MaxOnTech
      @MaxOnTech  Před rokem

      glad it helped. Let me know if there are other topics you want me to cover!

  • @Sonofsun001
    @Sonofsun001 Před 8 měsíci

    Thanks, just started using pycharm and am trying to follow a course I downloaded on selenium and test automation. The instructor is saying to run activate.bat instead of activate.ps1. This seems to have activated the environment.
    keep up the good work

  • @jeodezman32
    @jeodezman32 Před rokem +4

    PowerShell command:
    Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

  • @ghhdgjjfjjggj
    @ghhdgjjfjjggj Před 26 dny

    thank you so much...

  • @ock538
    @ock538 Před rokem +1

    thanks sir

  • @kapilnagar9748
    @kapilnagar9748 Před 7 měsíci

    thank you! very helpful
    in next video if you can touch upon using/connecting anaconda and gitlab with pycharm will be great.

  • @Raselweb
    @Raselweb Před rokem

    Very helpful video.
    Form Bangladesh ❤❤

  • @ziqinwu2337
    @ziqinwu2337 Před rokem

    good video!

  • @ridazouga4144
    @ridazouga4144 Před rokem +1

    Thank you so much for this series of Pycharm, please keep adding more videos because they are really useful🙏🙏

  • @itsRemco
    @itsRemco Před rokem

    06:34 saved my ass. Thanks for this wonderful tutorial bro!

    • @MaxOnTech
      @MaxOnTech  Před rokem +1

      awesome :) glad it helped!

    • @soe3717
      @soe3717 Před rokem

      pls send me the code, I cant do it

    • @soe3717
      @soe3717 Před rokem +1

      It's wok now, I am thankfull for this tutorial. Amazing

  • @ramacanda
    @ramacanda Před rokem

    Thanks dude

    • @ramacanda
      @ramacanda Před rokem

      Had to make some research for the command on powershell just for security and it was ok. Super simple

    • @MaxOnTech
      @MaxOnTech  Před rokem

      Hey Ray, glad it helped!

  • @christopheanfry2425
    @christopheanfry2425 Před rokem

    Thank you so much for your explanations regarding venv and in another video the interpreter but the question is why using venv, only to have our package in the project. I’m also installing packages in my projects without venv via pip3 install but then they are not available on pycharm. That’s because I don’t have venv? Thanks again very good content

  • @JimmyS2
    @JimmyS2 Před 10 měsíci

    Great video, details and how to jump in and out of venv, a minor correction if you don't mind, the file paths are separated by backslash \ in Windows, not slash / like in Linux

    • @MaxOnTech
      @MaxOnTech  Před 10 měsíci +1

      Yes, true, those slashes are confusing :D. Thanks for the info!

  • @hinafraz528
    @hinafraz528 Před rokem +1

    finally, loved it. It cleared my confusion. some questions I need to ask. To run a python program we have to be in a virtual environment first or it's just for installing packages only. 2nd question is how I can make separate python interpreter for different python projects? e.g project1---> python3.8 interpreter , project2------> python3.4 interpreter

    • @MaxOnTech
      @MaxOnTech  Před rokem

      Hi Hina, yes, you should also keep the venv on when you run your script. And you have the possibility to configure a new interpreter for each new project in the window that pops up when you create a new project :) hope it helps!

  • @utica2burn
    @utica2burn Před 11 měsíci

    Is there a particular reason why you instruct in the usage of the Python Console inside PyCharm and not just the window under File -> settings ?
    That window is very simple to use and the list of installed modules is right there.

  • @DuroLabs85
    @DuroLabs85 Před rokem +1

    Hi, I tried to install a new python interpreter "python 3.11" but it seems like the pycharm or maybe the python exe stays in a constant loop of the installation . So even after installing python the installation page pops again showing the "Modify, Repair, Uninstall" window of python and it just keeps re-appearing no matter which option I choose. Temporarily I choose the base interpreter which comes with pycharm itself but I want to change it to the latest asap can anyone tell me what's wrong with it or how can I fix it ?

  • @drarov91
    @drarov91 Před rokem

    Hi, thanks for this video.
    I have a question. Why it is happening that during deactivation of venv my local terminal in pycharm doesn't see python and pip? How to install them correctly on my computer?

  • @ZZ-cl5so
    @ZZ-cl5so Před rokem

    I wish i could like this video 1000 times
    I had problem of powershell and it was fixed then.
    How possible.Tnxxx

  • @tusharp1577
    @tusharp1577 Před 6 měsíci

    where should I put the code I am coding for example function library as I don't want to code in main(), inside vent folder or parallel to main, and how do I import in main ? tried and does not seem to recognize my local functional lib which is in project.

  • @kahnbiraj
    @kahnbiraj Před rokem +1

    Thanks for the nice intro for beginners like me. I had the "rare" issue that you mentioned and tried what you said. However, setting the scope to CurrentUser did not work for me. So, I had to change it to LocalMachine instead. Now, I don't understand why it did not work and why it worked when I switched it. Can you help me understand?

    • @MaxOnTech
      @MaxOnTech  Před rokem

      Hi Biraj, would love to help you on this but frankly I'm not sure why the switch to LocalMachine fixed the issue ... Anyway, glad that you fixed the issue

  • @legit_nyel
    @legit_nyel Před rokem +1

    What is the difference between using the venv and using existing environment? Is there any advantages and disadvantages?

    • @MaxOnTech
      @MaxOnTech  Před rokem

      Venv will save all dependencies (i.e., modules and libraries) to a folder specific to the project you are working on. Without venv you are going to install packages globally on your computer so that every project will have access to the modules and libraries - which is not good and in the video I explain why.

  • @s.d.9254
    @s.d.9254 Před 7 měsíci

    Hi, I'm using a Mac and my "problem" is two fold:
    1) At 1:18 when setting up the virtual environment. On the left side under my sample project, it does not say "venv library root" like your directory does. Instead, that folder is named "VirtualEnv".
    2) The terminal text is different. In the parentheses it reads "(VirtualEnv) USER@COMPUTERNAME sampleproject %". So when I try to write a command like "cd venv" I get this message: cd: no such file or directory: venv.
    Please advise!

  • @ege1217
    @ege1217 Před 3 měsíci

    You are fckng best

  • @deepasinghal4729
    @deepasinghal4729 Před 2 měsíci

    There is no "Scripts" shown in my pycharm. It has "bin" which has pckages and "lib" which has gitignore and pyvnev.cfg nested under it?

  • @ReshmaS-tb3bd
    @ReshmaS-tb3bd Před 10 měsíci

    sir, in 3:30 wen i type the command LS,am not getting venv ..wat to do now

  • @paaskanama
    @paaskanama Před 10 měsíci

    "venv" is not prompting when selecting the radio button. Is this because a venv exists on another project within the folder? The answer to this question is not clear.

  • @ALVINMAN452
    @ALVINMAN452 Před rokem +1

    Please, can you explain me: how can i run pycharm, venv with python ==3.6? (because Scrapy)
    Thank you.

    • @MaxOnTech
      @MaxOnTech  Před rokem +2

      Hey Alvaro! To create a new virtual environment with a different version of Python in PyCharm, you can follow these steps:
      Open your project in PyCharm.
      Click on the File menu and select Settings.
      In the left pane, click on Project: your_project_name, and then select Project Interpreter.
      Click on the gear icon at the top right corner and select Add.
      In the Add Python Interpreter window, select Virtual Environment and click on New Environment.
      In the Create Virtual Environment window, select the base interpreter that you want to use
      .
      Enter the location where you want to create the new virtual environment.
      Select the version of Python that you want to use.
      Click on Create.
      After creating the new virtual environment, select it from the list of interpreters and click on OK.
      Your new virtual environment should now be created with the desired version of Python.

    • @ALVINMAN452
      @ALVINMAN452 Před rokem

      @@MaxOnTech Once more time many thanks to help me with this new steps. Obrigado. Best regards.

  • @MaxOnTech
    @MaxOnTech  Před 11 měsíci

    Still facing issues? Perhaps my venv write-up covers the problem: maxontech.io/courses/pycharm/using-virtual-environments-venv-in-pycharm

  • @wedeyforyou
    @wedeyforyou Před 2 měsíci

    I need help. Now where do I code? In what file

  • @tomwinkler294
    @tomwinkler294 Před 10 měsíci

    So why not install all packages globally? What do I gain by installing a package to a virtual environment where it can’t be used for other projects?

  • @visualapproach7155
    @visualapproach7155 Před 5 měsíci

    Out of date with the new interface. There is no option to add an interpreter in the settings panel.

  • @NEERAJKUMAR-li3gj
    @NEERAJKUMAR-li3gj Před 23 dny

    amazing video. Very beautifully explained all the use cases. You are subscribed.

    • @MaxOnTech
      @MaxOnTech  Před 22 dny

      awesome :) glad I could help!

  • @rejsh
    @rejsh Před 10 měsíci

    I don’t want virtual environment. Every time I create new projects it goes to virtual environment but I want to create projects in main/global/local (whatever it calls I don’t know). Just show me the way how I avoid virtual environment?

  • @markotimmy11
    @markotimmy11 Před 6 měsíci

    How to create Project in Pycharm without virtual enivronment? I want to add it like you did in the video, but there is no option to create project without it. It would have been nice if you included that in the video.

    • @MaxOnTech
      @MaxOnTech  Před 6 měsíci +1

      When you create a new project there is a checkbox asking if you want to create one. Otherwise, you can always delete the venv folder. Both options lead to a project without venv.

    • @markotimmy11
      @markotimmy11 Před 6 měsíci

      @@MaxOnTech I still can't find that checkbox, but deleting the folder seems to do the trick. Thanks!

  • @SuperKevinFS
    @SuperKevinFS Před rokem

    Hi mate I am not able to get power shell working in Pycharm it is dead could you point me in the right direction thank u

    • @MaxOnTech
      @MaxOnTech  Před rokem

      Sure, check my answer under your other comment. I've written it out there :) all the best, Max

  • @zahiz5570
    @zahiz5570 Před rokem

    I have venv in terminal but can't see venv under project? Could you help me?

    • @MaxOnTech
      @MaxOnTech  Před rokem

      hi zahiz, compare the path in the terminal to the one of the file in the file tree. I think they wont be the same. Make sure you open the file whose path is the one you see in the terminal. If this doesn't help, then post a screenshot into my discord and ill try to help there.

  • @martinsantiago7900
    @martinsantiago7900 Před rokem

    I need your help
    When I open Virtualenv Environment 02:35
    At location: Do I have to paste the path of Python ?
    It just shows my location of downloads by default like (C:\Users\AVT\Downloads)
    Idk what to do and OK option isnt highlighted to click on
    Pls help

    • @martinsantiago7900
      @martinsantiago7900 Před rokem

      And if I set location for venv like (create a file) and Base Interpreter to Python and then clicked OK it opens Python to Modify Setup
      And if I click Modify it says its successful and asks to close and after closing its opens up again to Modify Setup and its continuous.. Im new to this pls help me

    • @MaxOnTech
      @MaxOnTech  Před rokem +1

      The path should be something like: .../project-name/venv
      you can make it manually if it doesn't look like that by default.

    • @MaxOnTech
      @MaxOnTech  Před rokem +1

      You should not add the folder youself because when the venv is created it will make the folder by default.

    • @MaxOnTech
      @MaxOnTech  Před rokem +1

      If this doesn't work, send a screenshot of the issue to my discord

    • @martinsantiago7900
      @martinsantiago7900 Před rokem

      @@MaxOnTech oh ok thanks for the reply
      I will try again

  • @sourabhkaushik7687
    @sourabhkaushik7687 Před rokem

    I am following the same method but not getting venv , it showing me in the terminal same name as my folder name in place of venv as of yours . Please tell me what to do now

    • @MaxOnTech
      @MaxOnTech  Před rokem

      Hi Sourabh, are you getting any error message?

    • @sourabhkaushik7687
      @sourabhkaushik7687 Před rokem

      @@MaxOnTech sir I am following the same step as you have said in this video above but the place where venv is to be written at that place the folder name is there . As per your example sample project is written in place of venv in the terminal.

    • @girlyvlogs1137
      @girlyvlogs1137 Před 11 měsíci

      same problem with me it does not enter into venv

    • @sourabhkaushik7687
      @sourabhkaushik7687 Před 11 měsíci

      @@girlyvlogs1137 I think you should try this code in visual studio code (vs code) there you can easily create your virtual environment (venv) . I did the same for this code to run . I hope it will work for you too .