User Tools

Site Tools


python_setup

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
python_setup [2026/04/29 01:22] 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: <code>sudo pacman -S python python-pip</code> +**Navigate to the folder you want to build the env in a terminal.**
-Deb/Ubuntu: <code>sudo apt install python python-pip</code>+
  
-Navigate to the folder you want to build the env in a terminal.+**Run this command:** <code>python -m venv .venv</code>
  
-Run this command: <code>python -m venv .venv</code>+**Activate the .venv.** <code>source .venv/bin/activate</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.**
  
-You can now install libraries inside the .venv without affecting the rest of the system.+**Example:** <code>pip install requests numpy</code>
  
-Example: <code>pip install requests numpy</code> +**To deactivate:** <code>deactivate</code>
- +
-To deactivate: <code>deactivate</code>+
  
python_setup.1777425743.txt.gz · Last modified: by admin