diff options
| author | srdusr <[email protected]> | 2023-07-17 21:37:02 +0200 |
|---|---|---|
| committer | srdusr <[email protected]> | 2023-07-17 21:37:02 +0200 |
| commit | 051940eaf625d872a01c7c883a3e152c6f6f265c (patch) | |
| tree | 9a0ede9cfa71ebd711e41620e3df9e17d1d4fadc /languages | |
| parent | 2ad7861ca040837f78adec20175422338c4406b6 (diff) | |
| download | notes-051940eaf625d872a01c7c883a3e152c6f6f265c.tar.gz notes-051940eaf625d872a01c7c883a3e152c6f6f265c.zip | |
Info on virtual environments
Diffstat (limited to 'languages')
| -rw-r--r-- | languages/python.md | 18 |
1 files changed, 18 insertions, 0 deletions
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. |