User Tools

Site Tools


python_setup

This is an old revision of the document!


To set up Python environment.

Make sure it is installed.

Arch:

sudo pacman -S python python-pip

Deb/Ubuntu:

sudo apt install python python-pip

Navigate to the folder you want to build the env in a terminal.

Run this command:

python -m venv .venv

Activate the .venv.

source .venv/bin/activate

You can now install libraries inside the .venv without affecting the rest of the system.

Example:

pip install requests numpy

To deactivate:

deactivate
python_setup.1777425743.txt.gz · Last modified: by admin