srdusr
aboutsummaryrefslogtreecommitdiffstats
path: root/languages/python.md
blob: 2b3817154b48bf63aa7cbe9d491a1821ef13caae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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.