User Tools

Site Tools


programming:python

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
programming:python [2023/11/01 07:31] – ↷ Page moved from camunda:programming:python to programming:python skipidarprogramming:python [2024/04/14 16:13] (current) – [Virtual environments] skipidar
Line 54: Line 54:
  
 https://learnxinyminutes.com/docs/python/ https://learnxinyminutes.com/docs/python/
 +
 +
 +==== Async with Python ====
 +
 +https://www.heise.de/hintergrund/Asynchrones-Programmieren-async-minus-await-7527129.html
 +
 +
 +==== Virtual environments ====
 +
 +==What is a Virtual Environment?==
 +
 +A virtual environment is an isolated directory that contains its own Python interpreter, libraries, and packages. It allows you to manage project dependencies independently, preventing conflicts with other projects or system-wide Python installations.
 +
 +
 +<sxh shell>
 +# create the virtual environment
 +python3 -m venv .venv
 +
 +# activate it
 +source .venv/bin/activate
 +
 +# this should point to the python binary in your virtual environment
 +which python
 +
 +# install dependencies in the virtual env
 +python -m pip install -r requirements.txt
 +</sxh>
 +
programming/python.1698823899.txt.gz · Last modified: by skipidar