Giter VIP home page Giter VIP logo

mushroom_test_liane's Introduction

Virtual Environment (venv) Setup & Activation Guide

Setting up a virtual environment can help you manage dependencies for your Python project. Here's a step-by-step guide to set up and activate a virtual environment using the built-in venv module in Python.

Prerequisites

  • Python 3.3 or later (check with python --version or python3 --version)

Step 1: Create a Virtual Environment

Navigate to your project directory (or wherever you want to create the virtual environment) and run one of the following commands:

For Linux/Mac:

python3 -m venv myenv

For Windows:

py -m venv myenv

This will create a directory called myenv (or whatever you named it) that contains the virtual environment (basically a bunch of directories and files).

Step 2: Activate the Virtual Environment

For Linux/Mac:

source myenv/bin/activate

For Windows:

myenv\Scripts\activate

You should see (myenv) at the beginning of your command line prompt, indicating that you are in the virtual environment. Now you can install dependencies and run your project without worrying about dependency conflicts.

Step 3: Deactivate the Virtual Environment

When you're done working in the virtual environment, you can deactivate it by running the following command:

deactivate

mushroom_test_liane's People

Contributors

joanclaverol avatar mynameis222222 avatar lgybas avatar hanaamulic avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.