#๐Ÿ”’ Virtual Environments

11 messages ยท Page 1 of 1 (latest)

tiny trellis
#

Hello, I'm curious to know more about how virtual environments work, as they seem pretty useful. However, I'm a little confused on how they work after reading up on them and would love some clarification

My current understanding is that venv is a folder within my project that holds all dependencies that I've installed using pip. Does this mean that my project folder structure would look something like Projects > Project 1, Project 2, etc > venv, code 1, code 2? Thus, I don't put any of my code within the venv folder but rather outside? How do I make it such that the programs are running on the dependencies within the venv?

lol I'm not sure if I phrased this correctly but I hope I made my question understandable.

cinder atlasBOT
#

@tiny trellis

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

tiny trellis
#

Also, I may have previously pip installed some modules in global & other venvs. Is there any way to find out which dependencies are within global vs venv without remembering how I structured my system lmao

#

(im cooked)

candid carbon
tiny trellis
#

ok cool

#

thank you so much

candid carbon
tiny trellis
#

alr

cinder atlasBOT
#
Python help channel closed for inactivity

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.