User Tools

Site Tools


projekte:sekwai:prepare

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
projekte:sekwai:prepare [2025/07/05 19:59] – [config.txt] dominikprojekte:sekwai:prepare [2025/07/05 20:12] (current) – [venv] dominik
Line 177: Line 177:
     * https://wiki.ubuntuusers.de/Python/manuelle_Installation/     * https://wiki.ubuntuusers.de/Python/manuelle_Installation/
   * Download von hier : https://www.python.org/downloads/source/   * Download von hier : https://www.python.org/downloads/source/
-  * ''wget https://www.python.org/ftp/python/3.14.0/Python-3.14.0b3.tgz''+    * ''wget https://www.python.org/ftp/python/3.13.5/Python-3.13.5.tgz'' 
 +    * ''wget https://www.python.org/ftp/python/3.14.0/Python-3.14.0b3.tgz''
     * Wir nutzen hier 3.14 Beta wegen Fixes im GIL      * Wir nutzen hier 3.14 Beta wegen Fixes im GIL 
     * https://dev.to/epam_india_python/python-313-the-gateway-to-high-performance-multithreading-without-gil-1dm7     * https://dev.to/epam_india_python/python-313-the-gateway-to-high-performance-multithreading-without-gil-1dm7
-  * ''tar zxvf Python-3.14.0b3.tgz && cd Python-3.14.0b3'' +  * ''tar zxvf Python-3.13.5.tgz && cd Python-3.13.5'' \\ ''tar zxvf Python-3.14.0b3.tgz && cd Python-3.14.0b3''  
-  * ''./configure %%--%%enable-optimizations %%--%%disable-gil''+  * Configuration mit und Ohne GIL 
 +    * ''./configure %%--%%enable-optimizations %%--%%disable-gil'' 
 +    * ''./configure %%--%%enable-optimizations''
     * https://docs.python.org/3/howto/free-threading-python.html     * https://docs.python.org/3/howto/free-threading-python.html
   * ''make -j2''   * ''make -j2''
Line 192: Line 195:
 ==== venv ==== ==== venv ====
   * ''cd ~ && mkdor sekwai && cd sekwai''   * ''cd ~ && mkdor sekwai && cd sekwai''
-  * ''python -m venv _envR''+  * ''python -m venv --copies _envR''
   * ''source _envR/bin/activate''   * ''source _envR/bin/activate''
   * ''pip install rpi-lgpio spidev''   * ''pip install rpi-lgpio spidev''
 +
 +==== Rechte für Prozess Prio setzen ====
 +Damit der Pi User die Rechte hat die Prozess Prio neu zu definieren braucht es folgendes: 
 +  * ''sudo apt-get install libcap2-bin''
 +  * Python venv anlegen mit ''%%--%%copies'' sonst hat man nur Links auf Python !
 +  * ''sudo setcap cap_sys_nice+ep _envR/bin/python3'' \\ Es gibt da noch 2 weitere Varianten ... Die ggf. auch setzen!
 +
  
 ==== Links ==== ==== Links ====
projekte/sekwai/prepare.1751738350.txt.gz · Last modified: by dominik

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki