#๐Ÿ”’ understanding python enviornments on linux

21 messages ยท Page 1 of 1 (latest)

pure onyxBOT
#

@restive cairn

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.

halcyon saddle
#

what are you trying to do and what issues are you running into

restive cairn
#

i really love how the open source community made shell / bat scripts to install python environments for python projects on https://github.com/oobabooga/text-generation-webui, and ever since then ive always used those bat scripts for my projects to keep python packages managed in environments

#

i just figured out how to use it on linux

wicked notch
#

virtual environments are great

#

if you don't want to use conda you can use venv directly or there's a module virtualenv or there are applications like pdm that will manage your virtualenvs for you

#

!pip virtualenv

pure onyxBOT
wicked notch
#

I use pdm

restive cairn
#

@wicked notch honestly ive tried it, with anaconda, with py -m venv, i dont like them at all on linux its more easier on windows, but i love the shell scripts on that repo i linked, it makes it easy for me to activate the terminal and use pip install

wicked notch
#

It can be unwieldy if you're not used to it.

restive cairn
#

also thank u for the pdm link i will look through it

wicked notch
#

It's really nice.

#

You just have all your dependencies in a pyproject.toml file and pdm will install them for you

restive cairn
wicked notch
#

I don't think it's that new.

pure onyxBOT
#
Python help channel closed

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.

#

๐Ÿ”’ understanding python enviornments on linux