How to use virtual enviroment for python Posted on 2024-01-15 In tutorial Views: Word count in article: 223 Reading time ≈ 1 mins. In some Linux distribution such as Debian, I cannot using pip install package directly for some reason. I still do not know why. So I learnt how to use virtual environment. 123python3 -m venv path/to/venvsource path/to/venv/bin/activatepip install package_name