Close Menu
    Facebook X (Twitter) Instagram
    Quiz Online POS Online Online Store
    Facebook X (Twitter) Instagram YouTube WhatsApp
    • Home
    • Latest
    • Education
      • Admissions
      • Scholarships
      • Exams
      • Result
      • MDCAT
      • Study Material
        • 9th Class
        • 10th Class
        • Academic Calendar
        • Assessment Schemes
        • Past Papers
    • Sci-Tech
    • Mobiles
      • Review & Price
      • Jazz
      • Zong
      • Telenor
      • Ufone
    • Facts
    • How to
    • Downloads
    • Crypto
    • Moral Stories
    SoluxionzSoluxionz
    Home»Uncategorized»How to Create Virtual Environment in Python
    Uncategorized

    How to Create Virtual Environment in Python

    ImranBy ImranUpdated:August 20, 20241 Min Read
    Facebook Twitter Pinterest LinkedIn Telegram WhatsApp
    Share
    Facebook Twitter LinkedIn Pinterest Telegram WhatsApp

    If you have not installed Python on your machine first you need to download and install Python from https://www.python.org/downloads/.

    After installing python on your machine, we need to setup virtual environment where you can work on your python projects separately.

    A Python virtual environment is an isolated space where you can work on your Python projects, separately from your system-installed Python. it allows you to create your own libraries and dependencies without affecting the system Python. You can also specify a particular version of Python to use. Use can use virtualenv to create a virtual environment in Python. to create a virtual environment, you need to run a command with the location of the virtual environment folder.

    • Open command prompt in windows
    • Move to your desired directory and folder
    • Type: py -m venv <virtual environment name> (Now your virtual environment is created)
    • <virtual environment name>\Scripts\activate.bat (Your virtual environment is activate now)
    • To deactivate virtual environment simply type deactivate.
    Share. Facebook Twitter Pinterest LinkedIn Telegram WhatsApp
    Imran
    • Website

    Related Posts

    Electricity Bill will be based on the number of units consumed till 12 midnight

    September 2, 2024

    Your Ultimate Guide to Becoming a Successful Freelancer

    August 25, 2024

    How to Get Study Visa in Germany

    August 6, 2024
    Add A Comment
    Leave A Reply Cancel Reply

    Best SSD Hosting

    Best Hosting Provider
    Soluxionz
    Facebook X (Twitter) Pinterest YouTube WhatsApp
    © 2025 Soluxionz.com.

    Type above and press Enter to search. Press Esc to cancel.