René's URL Explorer Experiment


Title: Python Virtual Environments: A Primer – Real Python

Open Graph Title: Python Virtual Environments: A Primer – Real Python

Description: Create isolated project setups on all platforms, and gain a deep understanding of Python's virtual environments created with the venv module.

Open Graph Description: Create isolated project setups on all platforms, and gain a deep understanding of Python's virtual environments created with the venv module.

Mail addresses
?subject=Python article for you&body=Python Virtual Environments: A Primer on Real Python https://realpython.com/python-virtual-environments-a-primer/

Opengraph URL: https://realpython.com/python-virtual-environments-a-primer/

X: @realpython

direct link

Domain: realpython.com


Hey, it has json ld scripts:
{
  "@context": "http://schema.org",
  "@type": "Article",
  "headline": "Python Virtual Environments: A Primer",
  "image": {
    "@type": "ImageObject",
    "url": "https://files.realpython.com/media/Python-Virtual-Environments_Watermarked.4c787192d42f.jpg",
    "width": 1920,
    "height": 1080
  },
  "mainEntityOfPage": {
    "@type": "WebPage",
    "@id": "https://realpython.com/python-virtual-environments-a-primer/",
    "lastReviewed": "2024-11-30",
    "author": {
      "@type": "Person",
      "name": "Martin Breuss",
      "image": "https://realpython.com/cdn-cgi/image/width=456,height=456,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/martin_breuss_python_square.efb2b07faf9f.jpg",
      "url": "https://realpython.com/team/mbreuss/",
      "affiliation": {
        "@type": "Organization",
        "@id": "https://realpython.com/#organization",
        "name": "Real Python",
        "url": "https://realpython.com",
        "logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
      }
    },
    "reviewedBy": [
      {
        "@type": "Person",
        "name": "Aldren Santos",
        "image": "https://realpython.com/cdn-cgi/image/width=500,height=500,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/Aldren_Santos_Real_Python.6b0861d8b841.png",
        "url": "https://realpython.com/team/asantos/",
        "affiliation": {
          "@type": "Organization",
          "@id": "https://realpython.com/#organization",
          "name": "Real Python",
          "url": "https://realpython.com",
          "logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
        }
      },
      {
        "@type": "Person",
        "name": "Brenda Weleschuk",
        "image": "https://realpython.com/cdn-cgi/image/width=320,height=320,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/IMG_3324_1.50b309355fc1.jpg",
        "url": "https://realpython.com/team/bweleschuk/",
        "affiliation": {
          "@type": "Organization",
          "@id": "https://realpython.com/#organization",
          "name": "Real Python",
          "url": "https://realpython.com",
          "logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
        }
      },
      {
        "@type": "Person",
        "name": "Bartosz Zaczy\u0144ski",
        "image": "https://realpython.com/cdn-cgi/image/width=1694,height=1694,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/coders_lab_2109368.259b1599fbee.jpg",
        "url": "https://realpython.com/team/bzaczynski/",
        "affiliation": {
          "@type": "Organization",
          "@id": "https://realpython.com/#organization",
          "name": "Real Python",
          "url": "https://realpython.com",
          "logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
        }
      },
      {
        "@type": "Person",
        "name": "Dan Bader",
        "image": "https://realpython.com/cdn-cgi/image/width=1000,height=1000,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/daniel-square.d58bf4388750.jpg",
        "url": "https://realpython.com/team/dbader/",
        "affiliation": {
          "@type": "Organization",
          "@id": "https://realpython.com/#organization",
          "name": "Real Python",
          "url": "https://realpython.com",
          "logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
        }
      },
      {
        "@type": "Person",
        "name": "Geir Arne Hjelle",
        "image": "https://realpython.com/cdn-cgi/image/width=800,height=800,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/gahjelle.470149ee709e.jpg",
        "url": "https://realpython.com/team/gahjelle/",
        "affiliation": {
          "@type": "Organization",
          "@id": "https://realpython.com/#organization",
          "name": "Real Python",
          "url": "https://realpython.com",
          "logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
        }
      },
      {
        "@type": "Person",
        "name": "Joanna Jablonski",
        "image": "https://realpython.com/cdn-cgi/image/width=800,height=800,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/jjablonksi-avatar.e37c4f83308e.jpg",
        "url": "https://realpython.com/team/jjablonski/",
        "affiliation": {
          "@type": "Organization",
          "@id": "https://realpython.com/#organization",
          "name": "Real Python",
          "url": "https://realpython.com",
          "logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
        }
      },
      {
        "@type": "Person",
        "name": "Kate Finegan",
        "image": "https://realpython.com/cdn-cgi/image/width=400,height=400,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/VZxEtUor_400x400.7169c68e3950.jpg",
        "url": "https://realpython.com/team/kfinegan/",
        "affiliation": {
          "@type": "Organization",
          "@id": "https://realpython.com/#organization",
          "name": "Real Python",
          "url": "https://realpython.com",
          "logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
        }
      },
      {
        "@type": "Person",
        "name": "Michael Herman",
        "image": "https://realpython.com/cdn-cgi/image/width=160,height=160,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/mike.fa94729a1e81.jpg",
        "url": "https://realpython.com/team/mherman/",
        "affiliation": {
          "@type": "Organization",
          "@id": "https://realpython.com/#organization",
          "name": "Real Python",
          "url": "https://realpython.com",
          "logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
        }
      }
    ]
  },
  "datePublished": "2024-11-30T14:00:00+00:00",
  "dateModified": "2024-11-30T14:09:26.165143+00:00",
  "publisher": {
    "@type": "Organization",
    "@id": "https://realpython.com/#organization",
    "name": "Real Python",
    "url": "https://realpython.com",
    "logo": {
      "@type": "ImageObject",
      "url": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png",
      "width": 512,
      "height": 512
    },
    "description": "Real Python is a leading provider of online Python education and one of the largest language-specific online communities for software developers. It publishes high-quality learning resources, such as tutorials, books, and courses to an audience of millions of developers, data scientists, and machine learning engineers each month.",
    "slogan": "Become a Python Expert",
    "email": "info@realpython.com",
    "sameAs": [
      "https://github.com/realpython",
      "https://www.youtube.com/realpython",
      "https://twitter.com/realpython",
      "https://x.com/realpython",
      "https://www.linkedin.com/company/realpython-com/",
      "https://www.facebook.com/learnrealpython",
      "https://www.instagram.com/realpython",
      "https://www.tiktok.com/@realpython.com"
    ]
  },
  "author": {
    "@type": "Person",
    "name": "Martin Breuss",
    "image": "https://realpython.com/cdn-cgi/image/width=456,height=456,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/martin_breuss_python_square.efb2b07faf9f.jpg",
    "url": "https://realpython.com/team/mbreuss/",
    "affiliation": {
      "@type": "Organization",
      "@id": "https://realpython.com/#organization",
      "name": "Real Python",
      "url": "https://realpython.com",
      "logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
    }
  },
  "description": "Create isolated project setups on all platforms, and gain a deep understanding of Python's virtual environments created with the venv module.",
  "hasPart": {
    "@type": "FAQPage",
    "mainEntity": [
      {
        "@type": "Question",
        "name": "How do you create a Python virtual environment?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "

You create a Python virtual environment by using the venv module. Open your terminal or command prompt and run the command python -m venv venv/, replacing venv/ with the folder name you want to give your virtual environment. This command sets up a new directory with a copy or symlink of the Python interpreter and a few supporting files.

" } }, { "@type": "Question", "name": "Why should you use virtual environments in Python?", "acceptedAnswer": { "@type": "Answer", "text": "

You should use virtual environments in Python to manage dependencies for different projects separately. This prevents conflicts between package versions and keeps your global Python environment clean. Virtual environments ensure that each project can have its own set of dependencies, independent of one another and the system-wide Python packages.

" } }, { "@type": "Question", "name": "How do you activate a virtual environment on Windows?", "acceptedAnswer": { "@type": "Answer", "text": "

To activate a virtual environment on Windows, navigate to your environment’s directory in the command prompt and run the command venv\\Scripts\\activate. Once activated, the environment name will appear in your command prompt, indicating that the virtual environment is active.

" } }, { "@type": "Question", "name": "Can you use different versions of Python in virtual environments?", "acceptedAnswer": { "@type": "Answer", "text": "

Yes, you can use different versions of Python in virtual environments. When creating a virtual environment, you can specify the Python interpreter you want to use by providing the path to the desired Python executable. This allows you to maintain environments with different Python versions as needed for your projects.

" } }, { "@type": "Question", "name": "How do you install packages in a Python virtual environment?", "acceptedAnswer": { "@type": "Answer", "text": "

Once you activate your virtual environment, you can install packages using pip. Run the command python -m pip install <package-name> to install a package in the active environment. This ensures that the installed package is isolated within the virtual environment, preventing conflicts with other projects.

" } } ] } }

authorReal Python
twitter:cardsummary_large_image
twitter:imagehttps://files.realpython.com/media/Python-Virtual-Environments_Watermarked.4c787192d42f.jpg
og:imagehttps://files.realpython.com/media/Python-Virtual-Environments_Watermarked.4c787192d42f.jpg
twitter:creator@realpython
og:typearticle

Links:

https://realpython.com/
Start Herehttps://realpython.com/start-here/
Learn Python https://realpython.com/python-virtual-environments-a-primer
Python Tutorials →In-depth articles and video courseshttps://realpython.com/search?kind=article&kind=course&order=newest
Learning Paths →Guided study plans for accelerated learninghttps://realpython.com/learning-paths/
Quizzes & Exercises →Check your learning progresshttps://realpython.com/quizzes/
Browse Topics →Focus on a specific area or skill levelhttps://realpython.com/tutorials/all/
Community Chat →Learn with other Pythonistashttps://realpython.com/community/
Office Hours →Live Q&A calls with Python expertshttps://realpython.com/office-hours/
Podcast →Hear what’s new in the world of Pythonhttps://realpython.com/podcasts/rpp/
Books →Round out your knowledge and learn offlinehttps://realpython.com/products/books/
Reference →Concise definitions for common Python termshttps://realpython.com/ref/
Code Mentor →BetaPersonalized code assistance & learning toolshttps://realpython.com/mentor/
Unlock All Content →https://realpython.com/account/join/
More https://realpython.com/python-virtual-environments-a-primer
Learner Storieshttps://realpython.com/learner-stories/
Python Newsletterhttps://realpython.com/newsletter/
Python Job Boardhttps://www.pythonjobshq.com
Meet the Teamhttps://realpython.com/team/
Become a Tutorial Writerhttps://realpython.com/write-for-us/
Become a Video Instructorhttps://realpython.com/become-an-instructor/
Searchhttps://realpython.com/search
https://realpython.com/search
Joinhttps://realpython.com/account/join/
Sign‑Inhttps://realpython.com/account/login/?next=%2Fpython-virtual-environments-a-primer%2F
Browse Topicshttps://realpython.com/tutorials/all/
Guided Learning Pathshttps://realpython.com/learning-paths/
Basicshttps://realpython.com/search?level=basics
Intermediatehttps://realpython.com/search?level=intermediate
Advancedhttps://realpython.com/search?level=advanced
aihttps://realpython.com/tutorials/ai/
algorithmshttps://realpython.com/tutorials/algorithms/
apihttps://realpython.com/tutorials/api/
best-practiceshttps://realpython.com/tutorials/best-practices/
careerhttps://realpython.com/tutorials/career/
communityhttps://realpython.com/tutorials/community/
databaseshttps://realpython.com/tutorials/databases/
data-sciencehttps://realpython.com/tutorials/data-science/
data-structureshttps://realpython.com/tutorials/data-structures/
data-vizhttps://realpython.com/tutorials/data-viz/
devopshttps://realpython.com/tutorials/devops/
djangohttps://realpython.com/tutorials/django/
dockerhttps://realpython.com/tutorials/docker/
editorshttps://realpython.com/tutorials/editors/
flaskhttps://realpython.com/tutorials/flask/
front-endhttps://realpython.com/tutorials/front-end/
gamedevhttps://realpython.com/tutorials/gamedev/
guihttps://realpython.com/tutorials/gui/
machine-learninghttps://realpython.com/tutorials/machine-learning/
newshttps://realpython.com/tutorials/news/
numpyhttps://realpython.com/tutorials/numpy/
projectshttps://realpython.com/tutorials/projects/
pythonhttps://realpython.com/tutorials/python/
stdlibhttps://realpython.com/tutorials/stdlib/
testinghttps://realpython.com/tutorials/testing/
toolshttps://realpython.com/tutorials/tools/
web-devhttps://realpython.com/tutorials/web-dev/
web-scrapinghttps://realpython.com/tutorials/web-scraping/
Table of Contentshttps://realpython.com/python-virtual-environments-a-primer#toc
How Can You Work With a Python Virtual Environment?https://realpython.com/python-virtual-environments-a-primer#how-can-you-work-with-a-python-virtual-environment
Create Ithttps://realpython.com/python-virtual-environments-a-primer#create-it
Activate Ithttps://realpython.com/python-virtual-environments-a-primer#activate-it
Install Packages Into Ithttps://realpython.com/python-virtual-environments-a-primer#install-packages-into-it
Deactivate Ithttps://realpython.com/python-virtual-environments-a-primer#deactivate-it
How Do You Enable a Venv in Your IDE?https://realpython.com/python-virtual-environments-a-primer#how-do-you-enable-a-venv-in-your-ide
Create and Activate a Virtual Environment in VS Codehttps://realpython.com/python-virtual-environments-a-primer#create-and-activate-a-virtual-environment-in-vs-code
Create and Activate a Virtual Environment in PyCharmhttps://realpython.com/python-virtual-environments-a-primer#create-and-activate-a-virtual-environment-in-pycharm
Why Do You Need Virtual Environments?https://realpython.com/python-virtual-environments-a-primer#why-do-you-need-virtual-environments
Avoid System Pollutionhttps://realpython.com/python-virtual-environments-a-primer#avoid-system-pollution
Sidestep Dependency Conflictshttps://realpython.com/python-virtual-environments-a-primer#sidestep-dependency-conflicts
Minimize Reproducibility Issueshttps://realpython.com/python-virtual-environments-a-primer#minimize-reproducibility-issues
Dodge Installation Privilege Lockoutshttps://realpython.com/python-virtual-environments-a-primer#dodge-installation-privilege-lockouts
What Is a Python Virtual Environment?https://realpython.com/python-virtual-environments-a-primer#what-is-a-python-virtual-environment
A Folder Structurehttps://realpython.com/python-virtual-environments-a-primer#a-folder-structure
An Isolated Python Installationhttps://realpython.com/python-virtual-environments-a-primer#an-isolated-python-installation
How Does a Virtual Environment Work?https://realpython.com/python-virtual-environments-a-primer#how-does-a-virtual-environment-work
It Copies Structure and Fileshttps://realpython.com/python-virtual-environments-a-primer#it-copies-structure-and-files
It Adapts the Prefix-Finding Processhttps://realpython.com/python-virtual-environments-a-primer#it-adapts-the-prefix-finding-process
It Links Back to Your Standard Libraryhttps://realpython.com/python-virtual-environments-a-primer#it-links-back-to-your-standard-library
It Modifies Your PYTHONPATHhttps://realpython.com/python-virtual-environments-a-primer#it-modifies-your-pythonpath
It Changes Your Shell PATH Variable on Activationhttps://realpython.com/python-virtual-environments-a-primer#it-changes-your-shell-path-variable-on-activation
It Runs From Anywhere With Absolute Pathshttps://realpython.com/python-virtual-environments-a-primer#it-runs-from-anywhere-with-absolute-paths
How Can You Customize a Virtual Environment?https://realpython.com/python-virtual-environments-a-primer#how-can-you-customize-a-virtual-environment
Change the Command Prompthttps://realpython.com/python-virtual-environments-a-primer#change-the-command-prompt
Overwrite Existing Environmentshttps://realpython.com/python-virtual-environments-a-primer#overwrite-existing-environments
Create Multiple Virtual Environments at Oncehttps://realpython.com/python-virtual-environments-a-primer#create-multiple-virtual-environments-at-once
Update the Core Dependencieshttps://realpython.com/python-virtual-environments-a-primer#update-the-core-dependencies
Avoid Installing piphttps://realpython.com/python-virtual-environments-a-primer#avoid-installing-pip
Include the System Site-Packageshttps://realpython.com/python-virtual-environments-a-primer#include-the-system-site-packages
Copy or Link Your Executableshttps://realpython.com/python-virtual-environments-a-primer#copy-or-link-your-executables
Upgrade Your Python to Match the System Pythonhttps://realpython.com/python-virtual-environments-a-primer#upgrade-your-python-to-match-the-system-python
What Other Popular Options Exist, Aside From venv?https://realpython.com/python-virtual-environments-a-primer#what-other-popular-options-exist-aside-from-venv
The Virtualenv Projecthttps://realpython.com/python-virtual-environments-a-primer#the-virtualenv-project
The Conda Package and Environment Managerhttps://realpython.com/python-virtual-environments-a-primer#the-conda-package-and-environment-manager
How Can You Manage Your Virtual Environments?https://realpython.com/python-virtual-environments-a-primer#how-can-you-manage-your-virtual-environments
Decide Where to Create Your Environment Foldershttps://realpython.com/python-virtual-environments-a-primer#decide-where-to-create-your-environment-folders
Treat Them as Disposableshttps://realpython.com/python-virtual-environments-a-primer#treat-them-as-disposables
Pin Your Dependencieshttps://realpython.com/python-virtual-environments-a-primer#pin-your-dependencies
Avoid Virtual Environments in Productionhttps://realpython.com/python-virtual-environments-a-primer#avoid-virtual-environments-in-production
Use Third-Party Toolshttps://realpython.com/python-virtual-environments-a-primer#use-third-party-tools
Conclusionhttps://realpython.com/python-virtual-environments-a-primer#conclusion
Frequently Asked Questionshttps://realpython.com/python-virtual-environments-a-primer#frequently-asked-questions
https://realpython.com/feedback/survey/article/python-virtual-environments-a-primer/liked/?from=article-sidebar
https://realpython.com/feedback/survey/article/python-virtual-environments-a-primer/disliked/?from=article-sidebar
Working With Python Virtual Environments 15m · 7 lessons https://realpython.com/courses/working-python-virtual-environments/
Martin Breusshttps://realpython.com/python-virtual-environments-a-primer#author
https://realpython.com/python-virtual-environments-a-primer#reader-comments
intermediatehttps://realpython.com/tutorials/intermediate/
devopshttps://realpython.com/tutorials/devops/
toolshttps://realpython.com/tutorials/tools/
How Can You Work With a Python Virtual Environment?https://realpython.com/python-virtual-environments-a-primer#how-can-you-work-with-a-python-virtual-environment
Create Ithttps://realpython.com/python-virtual-environments-a-primer#create-it
Activate Ithttps://realpython.com/python-virtual-environments-a-primer#activate-it
Install Packages Into Ithttps://realpython.com/python-virtual-environments-a-primer#install-packages-into-it
Deactivate Ithttps://realpython.com/python-virtual-environments-a-primer#deactivate-it
How Do You Enable a Venv in Your IDE?https://realpython.com/python-virtual-environments-a-primer#how-do-you-enable-a-venv-in-your-ide
Create and Activate a Virtual Environment in VS Codehttps://realpython.com/python-virtual-environments-a-primer#create-and-activate-a-virtual-environment-in-vs-code
Create and Activate a Virtual Environment in PyCharmhttps://realpython.com/python-virtual-environments-a-primer#create-and-activate-a-virtual-environment-in-pycharm
Why Do You Need Virtual Environments?https://realpython.com/python-virtual-environments-a-primer#why-do-you-need-virtual-environments
Avoid System Pollutionhttps://realpython.com/python-virtual-environments-a-primer#avoid-system-pollution
Sidestep Dependency Conflictshttps://realpython.com/python-virtual-environments-a-primer#sidestep-dependency-conflicts
Minimize Reproducibility Issueshttps://realpython.com/python-virtual-environments-a-primer#minimize-reproducibility-issues
Dodge Installation Privilege Lockoutshttps://realpython.com/python-virtual-environments-a-primer#dodge-installation-privilege-lockouts
What Is a Python Virtual Environment?https://realpython.com/python-virtual-environments-a-primer#what-is-a-python-virtual-environment
A Folder Structurehttps://realpython.com/python-virtual-environments-a-primer#a-folder-structure
An Isolated Python Installationhttps://realpython.com/python-virtual-environments-a-primer#an-isolated-python-installation
How Does a Virtual Environment Work?https://realpython.com/python-virtual-environments-a-primer#how-does-a-virtual-environment-work
It Copies Structure and Fileshttps://realpython.com/python-virtual-environments-a-primer#it-copies-structure-and-files
It Adapts the Prefix-Finding Processhttps://realpython.com/python-virtual-environments-a-primer#it-adapts-the-prefix-finding-process
It Links Back to Your Standard Libraryhttps://realpython.com/python-virtual-environments-a-primer#it-links-back-to-your-standard-library
It Modifies Your PYTHONPATHhttps://realpython.com/python-virtual-environments-a-primer#it-modifies-your-pythonpath
It Changes Your Shell PATH Variable on Activationhttps://realpython.com/python-virtual-environments-a-primer#it-changes-your-shell-path-variable-on-activation
It Runs From Anywhere With Absolute Pathshttps://realpython.com/python-virtual-environments-a-primer#it-runs-from-anywhere-with-absolute-paths
How Can You Customize a Virtual Environment?https://realpython.com/python-virtual-environments-a-primer#how-can-you-customize-a-virtual-environment
Change the Command Prompthttps://realpython.com/python-virtual-environments-a-primer#change-the-command-prompt
Overwrite Existing Environmentshttps://realpython.com/python-virtual-environments-a-primer#overwrite-existing-environments
Create Multiple Virtual Environments at Oncehttps://realpython.com/python-virtual-environments-a-primer#create-multiple-virtual-environments-at-once
Update the Core Dependencieshttps://realpython.com/python-virtual-environments-a-primer#update-the-core-dependencies
Avoid Installing piphttps://realpython.com/python-virtual-environments-a-primer#avoid-installing-pip
Include the System Site-Packageshttps://realpython.com/python-virtual-environments-a-primer#include-the-system-site-packages
Copy or Link Your Executableshttps://realpython.com/python-virtual-environments-a-primer#copy-or-link-your-executables
Upgrade Your Python to Match the System Pythonhttps://realpython.com/python-virtual-environments-a-primer#upgrade-your-python-to-match-the-system-python
What Other Popular Options Exist, Aside From venv?https://realpython.com/python-virtual-environments-a-primer#what-other-popular-options-exist-aside-from-venv
The Virtualenv Projecthttps://realpython.com/python-virtual-environments-a-primer#the-virtualenv-project
The Conda Package and Environment Managerhttps://realpython.com/python-virtual-environments-a-primer#the-conda-package-and-environment-manager
How Can You Manage Your Virtual Environments?https://realpython.com/python-virtual-environments-a-primer#how-can-you-manage-your-virtual-environments
Decide Where to Create Your Environment Foldershttps://realpython.com/python-virtual-environments-a-primer#decide-where-to-create-your-environment-folders
Treat Them as Disposableshttps://realpython.com/python-virtual-environments-a-primer#treat-them-as-disposables
Pin Your Dependencieshttps://realpython.com/python-virtual-environments-a-primer#pin-your-dependencies
Avoid Virtual Environments in Productionhttps://realpython.com/python-virtual-environments-a-primer#avoid-virtual-environments-in-production
Use Third-Party Toolshttps://realpython.com/python-virtual-environments-a-primer#use-third-party-tools
Conclusionhttps://realpython.com/python-virtual-environments-a-primer#conclusion
Frequently Asked Questionshttps://realpython.com/python-virtual-environments-a-primer#frequently-asked-questions
Remove adshttps://realpython.com/account/join/
Working With Python Virtual Environmentshttps://realpython.com/courses/working-python-virtual-environments/
Click here to download a free cheat sheethttps://realpython.com/bonus/python-virtual-environments-a-primer-pdf/
https://realpython.com/quizzes/python-virtual-environments-a-primer/
Python Virtual Environments: A Primerhttps://realpython.com/quizzes/python-virtual-environments-a-primer/
https://realpython.com/python-virtual-environments-a-primer#how-can-you-work-with-a-python-virtual-environment
Python’s venv modulehttps://docs.python.org/3/library/venv.html
officially recommendedhttps://docs.python.org/3/library/venv.html#creating-virtual-environments
condahttps://realpython.com/python-virtual-environments-a-primer#the-conda-package-and-environment-manager
virtualenvhttps://realpython.com/python-virtual-environments-a-primer#the-virtualenv-project
Remove adshttps://realpython.com/account/join/
https://realpython.com/python-virtual-environments-a-primer#create-it
installing with piphttps://realpython.com/what-is-pip/
Windowshttps://realpython.com/python-virtual-environments-a-primer#windows-1
Linuxhttps://realpython.com/python-virtual-environments-a-primer#linux-1
macOShttps://realpython.com/python-virtual-environments-a-primer#macos-1
Python launcher for Windowshttps://docs.python.org/3/using/windows.html#launcher
Python on Windowshttps://realpython.com/python-coding-setup-windows/
Python downloads pagehttps://www.python.org/downloads/
install Pythonhttps://realpython.com/installing-python/
install a modern version of Pythonhttps://realpython.com/installing-python/
https://realpython.com/python-virtual-environments-a-primer#activate-it
Windowshttps://realpython.com/python-virtual-environments-a-primer#windows-2
Linux + macOShttps://realpython.com/python-virtual-environments-a-primer#linux-macos-2
loosen the execution policyhttps://realpython.com/python-coding-setup-windows/#loosening-your-execution-policy
provide the full pathhttps://realpython.com/python-virtual-environments-a-primer#it-runs-from-anywhere-with-absolute-paths
https://realpython.com/python-virtual-environments-a-primer#install-packages-into-it
Windowshttps://realpython.com/python-virtual-environments-a-primer#windows-3
Linux + macOShttps://realpython.com/python-virtual-environments-a-primer#linux-macos-3
Python packagehttps://realpython.com/python-modules-packages/
Remove adshttps://realpython.com/account/join/
https://realpython.com/python-virtual-environments-a-primer#deactivate-it
Windowshttps://realpython.com/python-virtual-environments-a-primer#windows-4
Linux + macOShttps://realpython.com/python-virtual-environments-a-primer#linux-macos-4
run the activate scripthttps://realpython.com/python-virtual-environments-a-primer#activate-it
https://realpython.com/python-virtual-environments-a-primer#how-do-you-enable-a-venv-in-your-ide
Integrated Development Environment (IDE)https://realpython.com/python-ides-code-editors-guide/
Visual Studio Code (VS Code)https://realpython.com/python-development-visual-studio-code/
PyCharmhttps://realpython.com/pycharm-guide/
https://realpython.com/python-virtual-environments-a-primer#create-and-activate-a-virtual-environment-in-vs-code
Python environment in VS Codehttps://code.visualstudio.com/docs/python/environments
earlierhttps://realpython.com/python-virtual-environments-a-primer#create-it
activate the virtual environmenthttps://realpython.com/python-virtual-environments-a-primer#activate-it
https://files.realpython.com/media/venv-vscode-command-prompt-select-interpreter.e163a162f62c.png
https://files.realpython.com/media/venv-vscode-select-interpreter.4c89e6ce8f05.png
Remove adshttps://realpython.com/account/join/
https://realpython.com/python-virtual-environments-a-primer#create-and-activate-a-virtual-environment-in-pycharm
https://files.realpython.com/media/venv-pycharm-open-project-with-existing-venv.f36ef52efdd3.png
https://files.realpython.com/media/venv-pycharm-new-project.0593b22ce307.png
https://files.realpython.com/media/venv-pycharm-new-project-created.abb76ef641dc.png
configure the Python interpreter in PyCharmhttps://www.jetbrains.com/help/pycharm/configuring-python-interpreter.html
https://files.realpython.com/media/venv-pycharm-project-settings.07093605d0f2.png
https://files.realpython.com/media/venv-pycharm-add-interpreter.75c29e71f4b7.png
https://files.realpython.com/media/venv-pycharm-hover-environment-path.7ac7d94474f4.png
Remove adshttps://realpython.com/account/join/
https://realpython.com/python-virtual-environments-a-primer#why-do-you-need-virtual-environments
Windowshttps://realpython.com/python-virtual-environments-a-primer#windows-5
Linuxhttps://realpython.com/python-virtual-environments-a-primer#linux-5
macOShttps://realpython.com/python-virtual-environments-a-primer#macos-5
https://realpython.com/python-virtual-environments-a-primer#avoid-system-pollution
https://realpython.com/python-virtual-environments-a-primer#sidestep-dependency-conflicts
Django websiteshttps://realpython.com/get-started-with-django-1/
Django 2.2.26https://pypi.org/project/Django/2.2.26/
starting with Django 3.1https://docs.djangoproject.com/en/5.1/releases/3.1/#what-s-new-in-django-3-1
Windowshttps://realpython.com/python-virtual-environments-a-primer#windows-6
Linux + macOShttps://realpython.com/python-virtual-environments-a-primer#linux-macos-6
Windowshttps://realpython.com/python-virtual-environments-a-primer#windows-7
Linux + macOShttps://realpython.com/python-virtual-environments-a-primer#linux-macos-7
Remove adshttps://realpython.com/account/join/
https://realpython.com/python-virtual-environments-a-primer#minimize-reproducibility-issues
pin dependencieshttps://realpython.com/python-virtual-environments-a-primer#pin-your-dependencies
avoid system pollutionhttps://realpython.com/python-virtual-environments-a-primer#avoid-system-pollution
A web scraping project with Beautiful Souphttps://realpython.com/beautiful-soup-web-scraper-python/
A Flask applicationhttps://realpython.com/python-web-applications-with-flask-part-i/
Windowshttps://realpython.com/python-virtual-environments-a-primer#windows-8
Linux + macOShttps://realpython.com/python-virtual-environments-a-primer#linux-macos-8
pin your dependencieshttps://realpython.com/python-virtual-environments-a-primer#pin-your-dependencies
Windowshttps://realpython.com/python-virtual-environments-a-primer#windows-9
Linux + macOShttps://realpython.com/python-virtual-environments-a-primer#linux-macos-9
https://realpython.com/python-virtual-environments-a-primer#dodge-installation-privilege-lockouts
https://realpython.com/python-virtual-environments-a-primer#what-is-a-python-virtual-environment
Remove adshttps://realpython.com/account/join/
https://realpython.com/python-virtual-environments-a-primer#a-folder-structure
symlinkshttps://en.wikipedia.org/wiki/Symbolic_link
executable fileshttps://en.wikipedia.org/wiki/Executable
Windowshttps://realpython.com/python-virtual-environments-a-primer#windows-10
Linuxhttps://realpython.com/python-virtual-environments-a-primer#linux-10
macOShttps://realpython.com/python-virtual-environments-a-primer#macos-10
install treehttps://gitlab.com/OldManProgrammer/unix-tree
install treehttps://gitlab.com/OldManProgrammer/unix-tree
using HomeBrewhttps://formulae.brew.sh/formula/tree#default
rptree packagehttps://github.com/realpython/rptree
build that directory tree generatorhttps://realpython.com/directory-tree-generator-python/
Windowshttps://realpython.com/python-virtual-environments-a-primer#windows-11
Linuxhttps://realpython.com/python-virtual-environments-a-primer#linux-11
macOShttps://realpython.com/python-virtual-environments-a-primer#macos-11
Windowshttps://realpython.com/python-virtual-environments-a-primer#windows-12
Linuxhttps://realpython.com/python-virtual-environments-a-primer#linux-12
macOShttps://realpython.com/python-virtual-environments-a-primer#macos-12
include C header fileshttps://docs.python.org/3/c-api/intro.html#include-files
Starting with Python 3.12https://github.com/python/cpython/issues/95299
include C header fileshttps://docs.python.org/3/c-api/intro.html#include-files
Starting with Python 3.12https://github.com/python/cpython/issues/95299
for compatibility reasonshttps://stackoverflow.com/a/11370995/5717580
include C header fileshttps://docs.python.org/3/c-api/intro.html#include-files
Starting with Python 3.12https://github.com/python/cpython/issues/95299
package distributionhttps://realpython.com/pypi-publish-python-package/
record information about installed packageshttps://packaging.python.org/en/latest/specifications/recording-installed-packages/#the-dist-info-directory
without installing any dependencieshttps://realpython.com/python-virtual-environments-a-primer#avoid-installing-pip
Windowshttps://realpython.com/python-virtual-environments-a-primer#windows-13
Linux + macOShttps://realpython.com/python-virtual-environments-a-primer#linux-macos-13
automatically update piphttps://realpython.com/python-virtual-environments-a-primer#update-the-core-dependencies
PEP 517https://peps.python.org/pep-0517/
PEP 518https://peps.python.org/pep-0518/
in a manner true to its namehttps://github.com/pypa/setuptools/blob/main/_distutils_hack/
distributed together with setuptoolshttps://setuptools.pypa.io/en/latest/pkg_resources.html
Remove adshttps://realpython.com/account/join/
https://realpython.com/python-virtual-environments-a-primer#an-isolated-python-installation
influence the default behaviorhttps://realpython.com/python-virtual-environments-a-primer#copy-or-link-your-executables
Windowshttps://realpython.com/python-virtual-environments-a-primer#windows-14
Linuxhttps://realpython.com/python-virtual-environments-a-primer#linux-14
macOShttps://realpython.com/python-virtual-environments-a-primer#macos-14
how a virtual environment workshttps://realpython.com/python-virtual-environments-a-primer#how-does-a-virtual-environment-work
folder structurehttps://realpython.com/python-virtual-environments-a-primer#a-folder-structure
standard libraryhttps://docs.python.org/3/library/
importedhttps://realpython.com/python-import/
urllib modulehttps://realpython.com/urllib-request/
pretty print modulehttps://realpython.com/python-pretty-print/
linking to your base Python’s standard libraryhttps://realpython.com/python-virtual-environments-a-primer#it-links-back-to-your-standard-library
motivation for PEP 405https://www.python.org/dev/peps/pep-0405/#motivation
give your virtual environment access to the base installation’s site-packageshttps://realpython.com/python-virtual-environments-a-primer#include-the-system-site-packages
Windowshttps://realpython.com/python-virtual-environments-a-primer#windows-15
Linux + macOShttps://realpython.com/python-virtual-environments-a-primer#linux-macos-15
Remove adshttps://realpython.com/account/join/
https://realpython.com/python-virtual-environments-a-primer#how-does-a-virtual-environment-work
peek under the hoodhttps://realpython.com/podcasts/rpp/156/
Real Python Podcasthttps://realpython.com/real-python-podcast-launch/
Launching Python, Virtual Environments, and Locking Dependencieshttps://realpython.com/podcasts/rpp/93/
Virtual Environment Structure & Surveying the Packaging Ecosystemhttps://realpython.com/podcasts/rpp/156/
how virtual environments workhttps://snarky.ca/how-virtual-environments-work/
https://realpython.com/python-virtual-environments-a-primer#it-copies-structure-and-files
folder structurehttps://realpython.com/python-virtual-environments-a-primer#a-folder-structure
Windowshttps://realpython.com/python-virtual-environments-a-primer#windows-16
Linuxhttps://realpython.com/python-virtual-environments-a-primer#linux-16
macOShttps://realpython.com/python-virtual-environments-a-primer#macos-16
PATHhttps://realpython.com/add-python-to-path/
https://realpython.com/python-virtual-environments-a-primer#it-adapts-the-prefix-finding-process
venv specificationhttps://www.python.org/dev/peps/pep-0405/#specification
sys.base_prefixhttps://docs.python.org/3/library/sys.html#sys.base_prefix
sys.prefixhttps://docs.python.org/3/library/sys.html#sys.prefix
Windowshttps://realpython.com/python-virtual-environments-a-primer#windows-17
Linuxhttps://realpython.com/python-virtual-environments-a-primer#linux-17
macOShttps://realpython.com/python-virtual-environments-a-primer#macos-17
Windowshttps://realpython.com/python-virtual-environments-a-primer#windows-18
Linuxhttps://realpython.com/python-virtual-environments-a-primer#linux-18
macOShttps://realpython.com/python-virtual-environments-a-primer#macos-18
Sourcehttps://www.python.org/dev/peps/pep-0405/#specification
Remove adshttps://realpython.com/account/join/
https://realpython.com/python-virtual-environments-a-primer#it-links-back-to-your-standard-library
Sourcehttps://www.python.org/dev/peps/pep-0405/#specification
Windowshttps://realpython.com/python-virtual-environments-a-primer#windows-19
Linuxhttps://realpython.com/python-virtual-environments-a-primer#linux-19
macOShttps://realpython.com/python-virtual-environments-a-primer#macos-19
Windowshttps://realpython.com/python-virtual-environments-a-primer#windows-20
Linuxhttps://realpython.com/python-virtual-environments-a-primer#linux-20
macOShttps://realpython.com/python-virtual-environments-a-primer#macos-20
the site modulehttps://docs.python.org/3.12/library/site.html
Windowshttps://realpython.com/python-virtual-environments-a-primer#windows-21
Linuxhttps://realpython.com/python-virtual-environments-a-primer#linux-21
macOShttps://realpython.com/python-virtual-environments-a-primer#macos-21
https://realpython.com/python-virtual-environments-a-primer#it-modifies-your-pythonpath
PYTHONPATHhttps://docs.python.org/3/using/cmdline.html#envvar-PYTHONPATH
sys.pathhttps://docs.python.org/3/library/sys.html#sys.path
Windowshttps://realpython.com/python-virtual-environments-a-primer#windows-22
Linuxhttps://realpython.com/python-virtual-environments-a-primer#linux-22
macOShttps://realpython.com/python-virtual-environments-a-primer#macos-22
Windowshttps://realpython.com/python-virtual-environments-a-primer#windows-23
Linuxhttps://realpython.com/python-virtual-environments-a-primer#linux-23
macOShttps://realpython.com/python-virtual-environments-a-primer#macos-23
access to the system site-packageshttps://realpython.com/python-virtual-environments-a-primer#include-the-system-site-packages
Remove adshttps://realpython.com/account/join/
https://realpython.com/python-virtual-environments-a-primer#it-changes-your-shell-path-variable-on-activation
Windowshttps://realpython.com/python-virtual-environments-a-primer#windows-24
Linux + macOShttps://realpython.com/python-virtual-environments-a-primer#linux-macos-24
Windowshttps://realpython.com/python-virtual-environments-a-primer#windows-25
Linuxhttps://realpython.com/python-virtual-environments-a-primer#linux-25
macOShttps://realpython.com/python-virtual-environments-a-primer#macos-25
your favorite code editorhttps://realpython.com/python-ides-code-editors-guide/
Windowshttps://realpython.com/python-virtual-environments-a-primer#windows-26
Linuxhttps://realpython.com/python-virtual-environments-a-primer#linux-26
macOShttps://realpython.com/python-virtual-environments-a-primer#macos-26
https://realpython.com/python-virtual-environments-a-primer#it-runs-from-anywhere-with-absolute-paths
changes your PATH variablehttps://realpython.com/python-virtual-environments-a-primer#it-changes-your-shell-path-variable-on-activation
Windowshttps://realpython.com/python-virtual-environments-a-primer#windows-27
Linuxhttps://realpython.com/python-virtual-environments-a-primer#linux-27
macOShttps://realpython.com/python-virtual-environments-a-primer#macos-27
Print sys.pathhttps://realpython.com/python-virtual-environments-a-primer#it-modifies-your-pythonpath
sys.prefix has changedhttps://realpython.com/python-virtual-environments-a-primer#it-adapts-the-prefix-finding-process
PATH shell variablehttps://realpython.com/python-virtual-environments-a-primer#it-changes-your-shell-path-variable-on-activation
in a Docker containerhttps://pythonspeed.com/articles/activate-virtualenv-dockerfile/
hourly CRON jobhttps://crontab.guru/#0_*_*_*_*
site connectivityhttps://realpython.com/site-connectivity-checker-python/
https://realpython.com/python-virtual-environments-a-primer#how-can-you-customize-a-virtual-environment
https://realpython.com/python-virtual-environments-a-primer#change-the-command-prompt
.gitignorehttps://realpython.com/python-git-github-intro/#gitignore
Windowshttps://realpython.com/python-virtual-environments-a-primer#windows-28
Linux + macOShttps://realpython.com/python-virtual-environments-a-primer#linux-macos-28
Windowshttps://realpython.com/python-virtual-environments-a-primer#windows-29
Linux + macOShttps://realpython.com/python-virtual-environments-a-primer#linux-macos-29
special casehttps://github.com/python/cpython/issues/83082
Windowshttps://realpython.com/python-virtual-environments-a-primer#windows-30
Linux + macOShttps://realpython.com/python-virtual-environments-a-primer#linux-macos-30
specify a dot (.)https://github.com/python/cpython/blob/ff3bc82f7c9882c27aad597aac79355da7257186/Lib/venv/__init__.py#L55-L56
https://realpython.com/python-virtual-environments-a-primer#overwrite-existing-environments
Windowshttps://realpython.com/python-virtual-environments-a-primer#windows-31
Linux + macOShttps://realpython.com/python-virtual-environments-a-primer#linux-macos-31
used the full pathhttps://realpython.com/python-virtual-environments-a-primer#it-runs-from-anywhere-with-absolute-paths
activated the virtual environmenthttps://realpython.com/python-virtual-environments-a-primer#activate-it
Windowshttps://realpython.com/python-virtual-environments-a-primer#windows-32
Linux + macOShttps://realpython.com/python-virtual-environments-a-primer#linux-macos-32
https://realpython.com/python-virtual-environments-a-primer#create-multiple-virtual-environments-at-once
Windowshttps://realpython.com/python-virtual-environments-a-primer#windows-33
Linuxhttps://realpython.com/python-virtual-environments-a-primer#linux-33
macOShttps://realpython.com/python-virtual-environments-a-primer#macos-33
https://realpython.com/python-virtual-environments-a-primer#update-the-core-dependencies
Windowshttps://realpython.com/python-virtual-environments-a-primer#windows-34
Linux + macOShttps://realpython.com/python-virtual-environments-a-primer#linux-macos-34
can be frustratinghttps://bugs.python.org/issue34556
ensurepiphttps://docs.python.org/3/library/ensurepip.html
doesn’t connect to the Internethttps://www.python.org/dev/peps/pep-0453/#explicit-bootstrapping-mechanism
Windowshttps://realpython.com/python-virtual-environments-a-primer#windows-35
Linux + macOShttps://realpython.com/python-virtual-environments-a-primer#linux-macos-35
https://realpython.com/python-virtual-environments-a-primer#avoid-installing-pip
Windowshttps://realpython.com/python-virtual-environments-a-primer#windows-36
Linuxhttps://realpython.com/python-virtual-environments-a-primer#linux-36
macOShttps://realpython.com/python-virtual-environments-a-primer#macos-36
Python ZIP importshttps://realpython.com/python-zip-import/
https://realpython.com/python-virtual-environments-a-primer#include-the-system-site-packages
PyTorch or TensorFlowhttps://realpython.com/pytorch-vs-tensorflow/
CUDAhttps://en.wikipedia.org/wiki/CUDA
Windowshttps://realpython.com/python-virtual-environments-a-primer#windows-37
Linux + macOShttps://realpython.com/python-virtual-environments-a-primer#linux-macos-37
Windowshttps://realpython.com/python-virtual-environments-a-primer#windows-38
Linuxhttps://realpython.com/python-virtual-environments-a-primer#linux-38
macOShttps://realpython.com/python-virtual-environments-a-primer#macos-38
Windowshttps://realpython.com/python-virtual-environments-a-primer#windows-39
Linuxhttps://realpython.com/python-virtual-environments-a-primer#linux-39
macOShttps://realpython.com/python-virtual-environments-a-primer#macos-39
https://realpython.com/python-virtual-environments-a-primer#copy-or-link-your-executables
Sourcehttps://www.python.org/dev/peps/pep-0405/#copies-versus-symlinks
https://realpython.com/python-virtual-environments-a-primer#upgrade-your-python-to-match-the-system-python
using copies rather than symlinkshttps://realpython.com/python-virtual-environments-a-primer#copy-or-link-your-executables
Windowshttps://realpython.com/python-virtual-environments-a-primer#windows-40
Linux + macOShttps://realpython.com/python-virtual-environments-a-primer#linux-macos-40
https://realpython.com/python-virtual-environments-a-primer#what-other-popular-options-exist-aside-from-venv
third-party toolshttps://realpython.com/python-virtual-environments-a-primer#use-third-party-tools
https://realpython.com/python-virtual-environments-a-primer#the-virtualenv-project
Virtualenvhttps://virtualenv.pypa.io/en/latest/
Discoverhttps://virtualenv.pypa.io/en/latest/user_guide.html#python-discovery
programmatic APIhttps://virtualenv.pypa.io/en/latest/user_guide.html#programmatic-api
installing virtualenvhttps://virtualenv.pypa.io/en/latest/installation.html
Windowshttps://realpython.com/python-virtual-environments-a-primer#windows-41
Linuxhttps://realpython.com/python-virtual-environments-a-primer#linux-41
macOShttps://realpython.com/python-virtual-environments-a-primer#macos-41
much more quicklyhttps://discuss.python.org/t/virtualenv-20-0-0-beta1-is-available/3077
caches platform-specific application datahttps://virtualenv.pypa.io/en/latest/user_guide.html#seeders
embedded wheelshttps://virtualenv.pypa.io/en/latest/user_guide.html#wheels
Python’s zipapphttps://realpython.com/python-zipapp/
installing virtualenv via zipapphttps://virtualenv.pypa.io/en/latest/installation.html#via-zipapp
get started using virtualenvhttps://virtualenv.pypa.io/en/latest/user_guide.html
https://realpython.com/python-virtual-environments-a-primer#the-conda-package-and-environment-manager
Condahttps://docs.conda.io/en/latest/
Anaconda Python distributionhttps://anaconda.org
Sourcehttps://jakevdp.github.io/blog/2016/08/25/conda-myths-and-misconceptions/#Myth-#3:-Conda-and-pip-are-direct-competitor
Miniconda installerhttps://docs.conda.io/en/latest/miniconda.html
repo.anaconda.comhttps://repo.anaconda.com/
Python Package Index (PyPI)https://pypi.org/
create a conda environmenthttps://docs.conda.io/projects/conda/en/latest/commands/create.html
Windowshttps://realpython.com/python-virtual-environments-a-primer#windows-42
Linuxhttps://realpython.com/python-virtual-environments-a-primer#linux-42
macOShttps://realpython.com/python-virtual-environments-a-primer#macos-42
Windowshttps://realpython.com/python-virtual-environments-a-primer#windows-43
Linux + macOShttps://realpython.com/python-virtual-environments-a-primer#linux-macos-43
Windowshttps://realpython.com/python-virtual-environments-a-primer#windows-44
Linux + macOShttps://realpython.com/python-virtual-environments-a-primer#linux-macos-44
Windowshttps://realpython.com/python-virtual-environments-a-primer#windows-45
Linux + macOShttps://realpython.com/python-virtual-environments-a-primer#linux-macos-45
conda environmentshttps://realpython.com/python-windows-machine-learning-setup/#understanding-conda-environments
virtualenvhttps://realpython.com/python-virtual-environments-a-primer#the-virtualenv-project
https://realpython.com/python-virtual-environments-a-primer#how-can-you-manage-your-virtual-environments
https://realpython.com/python-virtual-environments-a-primer#decide-where-to-create-your-environment-folders
Windowshttps://realpython.com/python-virtual-environments-a-primer#windows-46
Linuxhttps://realpython.com/python-virtual-environments-a-primer#linux-46
macOShttps://realpython.com/python-virtual-environments-a-primer#macos-46
integrated development environment (IDE)https://realpython.com/python-ides-code-editors-guide/
VS Codehttps://code.visualstudio.com/docs/python/environments
PyCharmhttps://www.jetbrains.com/help/pycharm/creating-virtual-environment.html
https://realpython.com/python-virtual-environments-a-primer#treat-them-as-disposables
version controlhttps://realpython.com/python-git-github-intro/#version-control
publishing an open-source package to PyPIhttps://realpython.com/pypi-publish-python-package/
using PyInstaller to distribute Python applicationshttps://realpython.com/pyinstaller-python/
https://realpython.com/python-virtual-environments-a-primer#pin-your-dependencies
requirements.txt filehttps://realpython.com/what-is-pip/#using-requirements-files
Windowshttps://realpython.com/python-virtual-environments-a-primer#windows-47
Linux + macOShttps://realpython.com/python-virtual-environments-a-primer#linux-macos-47
Windowshttps://realpython.com/python-virtual-environments-a-primer#windows-48
Linux + macOShttps://realpython.com/python-virtual-environments-a-primer#linux-macos-48
requirements.txt using pip-toolshttps://pip-tools.readthedocs.io/en/latest/#example-usage-for-pip-compile
Pipfile.lock using Pipenvhttps://pipenv.pypa.io/en/latest/pipfile.html
poetry.lock using Poetryhttps://python-poetry.org/docs/basic-usage/#installing-with-poetrylock
https://realpython.com/python-virtual-environments-a-primer#avoid-virtual-environments-in-production
continuous integrationhttps://realpython.com/python-continuous-integration/
Herokuhttps://realpython.com/django-hosting-on-heroku/
Google App Engine (GAE)https://realpython.com/python-web-applications/
Dockerhttps://realpython.com/docker-continuous-integration/
https://realpython.com/python-virtual-environments-a-primer#use-third-party-tools
virtualenvwrapperhttps://virtualenvwrapper.readthedocs.io/en/latest/
virtualenvwrapper-winhttps://github.com/davidmarble/virtualenvwrapper-win/
Poetryhttps://python-poetry.org
Python dependency managementhttps://realpython.com/dependency-management-python-poetry/
manage your virtual environmenthttps://python-poetry.org/docs/managing-environments/
uvhttps://github.com/astral-sh/uv
uvhttps://realpython.com/python-uv/
Hatchhttps://hatch.pypa.io/latest/
Pipenvhttps://pipenv.pypa.io/en/latest/
Pipenv aims to improve dependency managementhttps://realpython.com/pipenv-guide/#dependency-management-with-requirementstxt
Python Packaging Authority (PyPA)https://www.pypa.io/en/latest/
pipxhttps://github.com/pypa/pipx
install Python applicationshttps://realpython.com/python-pipx/
bpythonhttps://realpython.com/bpython-alternative-python-repl/
ptpythonhttps://realpython.com/ptpython-shell/
IPythonhttps://realpython.com/ipython-interactive-python-shell/
pipx-in-pipxhttps://github.com/mattsb42-meta/pipx-in-pipx
recursive acronym for piphttps://en.wikipedia.org/wiki/Pip_(package_manager)#History
pyenvhttps://github.com/pyenv/pyenv
manage multiple Python versions with pyenvhttps://realpython.com/intro-to-pyenv/
pyenv-winhttps://github.com/pyenv-win/pyenv-win
pyenv-virtualenvhttps://github.com/pyenv/pyenv-virtualenv
pyenvhttps://realpython.com/intro-to-pyenv/
pyenv-virtualenvwrapperhttps://github.com/pyenv/pyenv-virtualenvwrapper
https://realpython.com/python-virtual-environments-a-primer#conclusion
https://realpython.com/python-virtual-environments-a-primer#frequently-asked-questions
Click here to download a free cheat sheethttps://realpython.com/bonus/python-virtual-environments-a-primer-pdf/
https://realpython.com/quizzes/python-virtual-environments-a-primer/
Python Virtual Environments: A Primerhttps://realpython.com/quizzes/python-virtual-environments-a-primer/
https://realpython.com/feedback/survey/article/python-virtual-environments-a-primer/liked/?from=article-footer
https://realpython.com/feedback/survey/article/python-virtual-environments-a-primer/disliked/?from=article-footer
Working With Python Virtual Environmentshttps://realpython.com/courses/working-python-virtual-environments/
https://realpython.com/team/mbreuss/
» More about Martinhttps://realpython.com/team/mbreuss/
https://realpython.com/team/asantos/
Aldrenhttps://realpython.com/team/asantos/
https://realpython.com/team/bweleschuk/
Brendahttps://realpython.com/team/bweleschuk/
https://realpython.com/team/bzaczynski/
Bartoszhttps://realpython.com/team/bzaczynski/
https://realpython.com/team/dbader/
Danhttps://realpython.com/team/dbader/
https://realpython.com/team/gahjelle/
Geir Arnehttps://realpython.com/team/gahjelle/
https://realpython.com/team/jjablonski/
Joannahttps://realpython.com/team/jjablonski/
https://realpython.com/team/kfinegan/
Katehttps://realpython.com/team/kfinegan/
https://realpython.com/team/mherman/
Michaelhttps://realpython.com/team/mherman/
Level Up Your Python Skills »https://realpython.com/account/join/?utm_source=rp_article_footer&utm_content=python-virtual-environments-a-primer
Level Up Your Python Skills »https://realpython.com/account/join/?utm_source=rp_article_footer&utm_content=python-virtual-environments-a-primer
https://realpython.com/feedback/survey/article/python-virtual-environments-a-primer/liked/?from=article-comments
https://realpython.com/feedback/survey/article/python-virtual-environments-a-primer/disliked/?from=article-comments
LinkedInhttps://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Frealpython.com%2Fpython-virtual-environments-a-primer%2F
Twitterhttps://twitter.com/intent/tweet/?text=Interesting%20Python%20article%20on%20%40realpython%3A%20Python%20Virtual%20Environments%3A%20A%20Primer&url=https%3A%2F%2Frealpython.com%2Fpython-virtual-environments-a-primer%2F
Blueskyhttps://bsky.app/intent/compose?text=Interesting%20Python%20article%20on%20%40realpython.com%3A%20Python%20Virtual%20Environments%3A%20A%20Primer%20https%3A%2F%2Frealpython.com%2Fpython-virtual-environments-a-primer%2F
Facebookhttps://facebook.com/sharer/sharer.php?u=https%3A%2F%2Frealpython.com%2Fpython-virtual-environments-a-primer%2F
Get tips for asking good questionshttps://realpython.com/python-beginner-tips/#tip-9-ask-good-questions
get answers to common questions in our support portalhttps://support.realpython.com
Real Python Community Chathttps://realpython.com/community/
“Office Hours” Live Q&A Sessionhttps://realpython.com/office-hours/
intermediatehttps://realpython.com/tutorials/intermediate/
devopshttps://realpython.com/tutorials/devops/
toolshttps://realpython.com/tutorials/tools/
Perfect Your Python Development Setuphttps://realpython.com/learning-paths/perfect-your-python-development-setup/?utm_source=realpython&utm_medium=web&utm_campaign=related-learning-path&utm_content=python-virtual-environments-a-primer
Working With Python Virtual Environmentshttps://realpython.com/courses/working-python-virtual-environments/?utm_source=realpython&utm_medium=web&utm_campaign=related-course&utm_content=python-virtual-environments-a-primer
Beautiful Soup: Build a Web Scraper With Pythonhttps://realpython.com/beautiful-soup-web-scraper-python/?utm_source=realpython&utm_medium=web&utm_campaign=related-post&utm_content=python-virtual-environments-a-primer
LlamaIndex in Python: A RAG Guide With Exampleshttps://realpython.com/llamaindex-examples/?utm_source=realpython&utm_medium=web&utm_campaign=related-post&utm_content=python-virtual-environments-a-primer
Using Python's pip to Manage Your Projects' Dependencieshttps://realpython.com/what-is-pip/?utm_source=realpython&utm_medium=web&utm_campaign=related-post&utm_content=python-virtual-environments-a-primer
Managing Multiple Python Versions With pyenvhttps://realpython.com/intro-to-pyenv/?utm_source=realpython&utm_medium=web&utm_campaign=related-post&utm_content=python-virtual-environments-a-primer
Get Started With FastAPIhttps://realpython.com/get-started-with-fastapi/?utm_source=realpython&utm_medium=web&utm_campaign=related-post&utm_content=python-virtual-environments-a-primer
https://realpython.com/account/signup/?intent=continue_reading&utm_source=rp&utm_medium=web&utm_campaign=rwn&utm_content=v1&next=%2Fpython-virtual-environments-a-primer%2F
Continue »https://realpython.com/account/signup/?intent=continue_reading&utm_source=rp&utm_medium=web&utm_campaign=rwn&utm_content=v1&next=%2Fpython-virtual-environments-a-primer%2F
Sign-Inhttps://realpython.com/account/login/?next=/python-virtual-environments-a-primer/
Start Herehttps://realpython.com/start-here/
Learning Resourceshttps://realpython.com/search
Code Mentorhttps://realpython.com/mentor/
Python Referencehttps://realpython.com/ref/
Python Cheat Sheethttps://realpython.com/cheatsheets/python/
Support Centerhttps://support.realpython.com/
Learning Pathshttps://realpython.com/learning-paths/
Quizzes & Exerciseshttps://realpython.com/quizzes/
Browse Topicshttps://realpython.com/tutorials/all/
Live Courseshttps://realpython.com/live/
Bookshttps://realpython.com/books/
Podcasthttps://realpython.com/podcasts/rpp/
Newsletterhttps://realpython.com/newsletter/
Community Chathttps://realpython.com/community/
Office Hourshttps://realpython.com/office-hours/
Learner Storieshttps://realpython.com/learner-stories/
Plans & Pricinghttps://realpython.com/account/join/
Team Planshttps://realpython.com/account/join-team/
For Businesshttps://realpython.com/account/join-team/inquiry/
For Schoolshttps://realpython.com/account/join-team/education-inquiry/
Reviewshttps://realpython.com/learner-stories/
About Ushttps://realpython.com/about/
Teamhttps://realpython.com/team/
Mission & Valueshttps://realpython.com/mission/
Editorial Guidelineshttps://realpython.com/editorial-guidelines/
Sponsorshipshttps://realpython.com/sponsorships/
Careershttps://realpython.workable.com
Press Kithttps://realpython.com/media-kit/
Merchhttps://realpython.com/merch
https://www.youtube.com/realpython
https://x.com/realpython
https://www.linkedin.com/company/realpython-com
https://www.facebook.com/LearnRealPython
https://github.com/realpython/
Privacy Policyhttps://realpython.com/privacy-policy/
Terms of Usehttps://realpython.com/terms/
Securityhttps://realpython.com/security/
Contacthttps://realpython.com/contact/
https://realpython.com/

Viewport: width=device-width, initial-scale=1, shrink-to-fit=no, viewport-fit=cover

Robots: max-image-preview:large


URLs of crawlers that visited me.