Python Forum
Need help i just started the whole thing
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help i just started the whole thing
#11
(Sep-11-2022, 08:23 PM)gabriel789 Wrote: when you say virtual environment you mean like virtualbox
Can say it similar but instead of creates a OS,it's make a new stand alone Python environment.
It's build into Python trough venv or there 3-party lib like Poetry.
Purpose of Python virtual environments is to create an isolated environment for Python projects,
means that each project can have its own dependencies,regardless of what dependencies OS Python or other project has.
Example.
# Make 
G:\div_code
λ python -m venv new_env
 
# Cd in
λ cd new_env\
 
# Activate
# Linux <source bin/activate>
G:\div_code\new_env
λ G:\div_code\new_env\Scripts\activate
 
# Install
(new_env) G:\div_code\new_env
λ pip install requests
Collecting requests ..... 
Successfully installed certifi-2020.12.5 chardet-4.0.0 idna-2.10 requests-2.25.1 urllib3-1.26.3
 
# List packages in environment 
(new_env) G:\div_code\new_env
λ pip list
Package    Version
---------- ---------
certifi    2020.12.5
chardet    4.0.0
idna       2.10
pip        20.2.3
requests   2.25.1
setuptools 49.2.1
urllib3    1.26.3
 
# Show
(new_env) G:\div_code\new_env
λ pip show requests
Name: requests
Version: 2.25.1
Summary: Python HTTP for Humans.
Home-page: https://requests.readthedocs.io
Author: Kenneth Reitz
Author-email: [email protected]
License: Apache 2.0
Location: g:\div_code\new_env\lib\site-packages
Requires: idna, certifi, chardet, urllib3
Reply


Messages In This Thread
RE: Need help i just started the whole thing - by snippsat - Sep-12-2022, 12:02 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  I am confused with the key and value thing james1019 3 1,107 Feb-22-2023, 10:43 PM
Last Post: deanhystad
  Cannot get started standenman 4 1,396 Feb-22-2023, 05:25 PM
Last Post: standenman
  i making a terminal sign up website thing Kenrichppython 1 1,814 Nov-04-2021, 03:57 AM
Last Post: bowlofred
  use thing before self sylvanas 3 2,481 Jul-21-2021, 04:54 PM
Last Post: sylvanas
  Not able to make a specific thing pause in pygame cooImanreebro 4 3,457 Dec-13-2020, 10:34 PM
Last Post: cooImanreebro
  Can't even get started dr6 1 1,722 Aug-18-2020, 04:38 PM
Last Post: Larz60+
  Help with list thing please Yeyzon 1 2,150 Apr-19-2019, 07:51 AM
Last Post: snippsat
  Printing one thing from a list bidoofis 1 2,437 Feb-05-2019, 09:02 PM
Last Post: ichabod801
  Getting started mba_110 0 1,797 Jan-18-2019, 05:23 PM
Last Post: mba_110
  I found weird thing. catastrophe_K 1 2,182 Sep-29-2018, 09:59 AM
Last Post: gruntfutuk

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020