CoreyMS

Development, Design, DIY, and more

  • Contact
  • Portfolio
  • Development
    • Python
    • Git
    • Terminal
    • JavaScript
    • WordPress
  • Design
    • CSS
  • DIY
    • Woodworking
    • Home Improvement
  • Contributors
  • Support
  • Giveaway

Python Tutorial: VENV (Windows) – How to Use Virtual Environments with the Built-In venv Module

April 6, 2019 by Corey Schafer Leave a Comment

In this Python Programming Tutorial, we will be learning how to use virtual environments on the Windows operating systems with the built-in venv module. We will learn how to create them, activate them, remove them, and much more. Let’s get started…

Filed Under: Development, Python Tagged With: venv, virtual environment, virtualenv

Python Tutorial: VENV (Mac & Linux) – How to Use Virtual Environments with the Built-In venv Module

April 6, 2019 by Corey Schafer Leave a Comment

In this Python Programming Tutorial, we will be learning how to use virtual environments on the Mac and Linux operating systems with the built-in venv module. We will learn how to create them, activate them, remove them, and much more. Let’s get started…

Filed Under: Development, Python Tagged With: venv, virtual environment, virtualenv

Python Tutorial: Pipenv – Easily Manage Packages and Virtual Environments

October 17, 2018 by Corey Schafer Leave a Comment

In this Python Programming Tutorial, we will be learning how to use Pipenv. Pipenv is a new package manager that combines pip and virtualenv into one easy-to-use tool. We will learn how to install pipenv, how to install new packages, how to manage our newly created environment for our project, and also look at some more advanced use cases. Let’s get started…

Filed Under: Development, Python Tagged With: Command Line, Computer Science, pip, pipenv, Programming, Terminal, Video, virtualenv

Python: virtualenv and why you should use virtual environments

April 14, 2015 by Corey Schafer Leave a Comment

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 project-specific dependencies in a separate place than our global site-packages. This is extremely useful when you have different versions of packages for different projects.

Here’s a brief walkthrough of some of the code from the video:

Install virtualenv

pip install virtualenv

Create a location for your environments (Optional)

mkdir ~/Environments
cd ~/Environments

Create a new virtual environment (called venv for this example)

virtualenv venv

Activate your new virtual environment

source venv/bin/activate

At this point you can work from inside of your new virtual environment and know that you are keeping your project-specific packages and dependencies separate.

When you are finished, you can deactivate your virtual environment

deactivate

If you no longer need your environment and would like to delete it, you can just remove the directory

rm -rf venv

Filed Under: Development, Python Tagged With: Command Line, Computer Science, Development Environment, Mac, Programming, Terminal, virtualenv

Main Contributor

  • Andre Nevares

Top Contributors (17)

  • Andre Nevares
  • Cyril Hediger
  • Abhilash Rajan
  • Hien Nguyen
  • Alan Hawse – iotexpert.com
  • Just a Guy
  • Alex Canady
  • Sergey Trubin
  • Justin Presley
  • Sirake
  • chris
  • Jerome Massey
  • Robert Butler
  • Jonathan Llovet
  • David Myers
  • Karthik
  • Michael Zoitas

Thank You! If you would like to have your name listed as a contributor and support the website, you can do so through my Patreon Page. I am extremely grateful for any support.

Search CoreyMS.com

Subscribe to Future Posts

Recommended Books

Podcasts I Listen To

Tech Related:
Talk Python To Me
Shoptalk Show
Software Engineering Radio
HanselMinutes
CodePen Radio

Non-Tech Related:
Dan Carlin's Hardcore History
Bill Burr's Monday Morning Podcast
Waking Up with Sam Harris
StarTalk Radio
Talk Nerdy with Cara Santa Maria

© 2023 · CoreyMS · Corey Schafer