#๐ Virtual Enviroment
20 messages ยท Page 1 of 1 (latest)
@woeful swift
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.
generally a project will be structured like this
so outside the venv, inside the root folder
Will Python recognize that I am trying to use the Virtual Environment space to work with?
you will have to manually activate the venv
there are scripts for the same inside the venv/Scripts/ folder
you'd do the equivalent of sourcing them on Windows(which I assume you are using), idk the exact cmd so let me look it up
Scripts\activate.ps1 if on powershell
Scripts\activate.bat if on cmd
preferably use the full paths since idk if windows will pick up on relative paths as scripts to run
and to deactivate the venv and go back to using the global python, you can run deactivate
so, it's like, get in Scripts\activate.ps1 if on powershel. Activate it and after make a new folder to sabe our files, and more two files. One for run the application e another as Readme. Is that right?
readme isn't really required unless you want one
you can have a folder (src, or whatever really, src is just conventionally taken but you don't have to call it src) to store the scripts in, or just keep it in the root folder
and the pyproject.toml(or setup.cfg/setup.py .... etc. ) are for making the scripts installable using pip
again, can be skipped if you're not going to put this up on pypi/github or anywhere else to be installed using pip
Tanks Engliz, you helped me a lot. Got bless you!
no problem! you can go ahead and close this post if you have no further questions
!close
Ok, thank you
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, 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.