In this video, we will be looking at virtualenv and why you should be using virtual environments in Python. Virtual Environments in Python allow us to keep …

source

27 Comments

  1. 8:31 is the answer I was looking for – keep the project files outside the virtual environment.
    Overall, the video is excellent! Thank you.

  2. Hi and thank you for the video. I have created a virtualenv successfully but when I run a programme in this environment it is using package from original python installation. Can you help please?

  3. after deactivating how do you get back to the environment? $ virtualenv ____(project_env)__ or $ workon ____(project_env)__ ? What is the purpose of $ workon ? I was told to use this command in the virtual env that my coworker set up for me. (I am learning).

  4. The last tip about the project folders shouldn't be in the environment folder was helpful, thanks!

    EDIT: I'm going through other tutorials, and they say to install django within the virtual environment. why is this? if this is the case, that means the projects are within the environment, contrary to what you're saying.
    some examples:
    https://www.youtube.com/watch?v=3DccH9AMwFQ
    https://jeffknupp.com/blog/2012/02/09/starting-a-django-project-the-right-way/
    http://tutorial.djangogirls.org/en/django_installation/

  5. Yes, my tutorials are helpful. but i m green to writing script and script was just a guess by me so,my question is . is there a tutorial for the grade just lower than Python?

  6. Thanks for explaining everything in a simple manner, cheers Corey. Just one quick question, what do you mean when you said "You shouldn't really build your project in the virtual environment". I am currently working on my blog (I intent to build with Django), so in my case, should I use virtual env for development locally?

  7. Thanks for making the distinction between storing Project files and files used to establish a Virtual Environment. It seems wise to set a separate directory for Project files and then send them to github. Am I correct ? Thanks Again

  8. To my understanding, you can only be working with a single virtualenv at a time, correct? And also the way I understand this works is that you don't have to move your python projects anywhere? Just set which virtualenv you want to activate and thats it?

  9. I want to use different environments at the same time, because I need to use a Py2.7 package with my Py3.5 scripts. I know it is possible, but how??

  10. If you happen to be using Windows use this command instead to activate it: > pathtoenvScriptsactivate No command is needed before the file path.

Leave A Reply

Please enter your comment!
Please enter your name here