User Tools

Site Tools


python_setup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
python_setup [2026/04/29 01:11] – created adminpython_setup [2026/04/29 01:32] (current) admin
Line 1: Line 1:
-To set up Python environment.+**To set up Python environment.
  
 Make sure it is installed. Make sure it is installed.
 +**
 +**Arch:** <code>sudo pacman -S python python-pip</code>
 +**Deb/Ubuntu:** <code>sudo apt install python python-pip</code>
  
-Arch: sudo pacman -S python python-pip +**Navigate to the folder you want to build the env in a terminal.**
-Deb/Ubuntu: sudo apt install python python-pip+
  
 +**Run this command:** <code>python -m venv .venv</code>
 +
 +**Activate the .venv.** <code>source .venv/bin/activate</code>
 +
 +**You can now install libraries inside the .venv without affecting the rest of the system.**
 +
 +**Example:** <code>pip install requests numpy</code>
 +
 +**To deactivate:** <code>deactivate</code>
  
python_setup.1777425088.txt.gz · Last modified: by admin