From 051940eaf625d872a01c7c883a3e152c6f6f265c Mon Sep 17 00:00:00 2001 From: srdusr Date: Mon, 17 Jul 2023 21:37:02 +0200 Subject: Info on virtual environments --- languages/python.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/languages/python.md b/languages/python.md index e69de29..2b38171 100644 --- a/languages/python.md +++ b/languages/python.md @@ -0,0 +1,18 @@ + +Planning to develop some python application or python package your best option is use virtual environments. +Try virtualenv or even conda + +Use poetry much better option to manage application from start to finish. It is a much better option than requirements.txt + setup.py. + + +Another more simple option is use python-virtualenv. This can bring portability to the code and maintain old packages as well. Install it with + +sudo pacman -S python-virtualenv + +and then do this + +virtualenv -p /usr/bin/python3 yourenv +source yourenv/bin/activate +pip install package-name + +When you create this environment yourenv, you will setup pip to install packages only into this environment, not to the entire system. -- cgit v1.2.3