Durchsuchen nach
Schlagwort: Python

Python: To generate a qrcode

Python: To generate a qrcode

There are a lot of options where you can generate a qrcode. What is a QRcode? The QRcode is the little black-white box where you can save data. In most cases, this is the URL of a website. What is the URL? The URL identifies and locates a resource on the Internet or on a local network (e.g. a web page, an image, a file or an email address). What is Python? Python is a programming language. In the meanwhile,…

Weiterlesen Weiterlesen

To add a Python script as a shortcut in the Bash

To add a Python script as a shortcut in the Bash

Linux Bash 5.2.32(1): I have created a Python (version 3.13.7) script in order to shut down my pc. I don’t want to click on the graphic menu in the Gnome (47.9 my version). This is the script in order to shut down the pc: The script checked first the current time and second whether pip has something in the cache, when I had updated some packages. I have saved into many subfolders in my file system Linux_PC/Programmieren/Python/Python_eigene_Scripte/herunterfahren_system.py with the command…

Weiterlesen Weiterlesen

How to determine the folder in a directory – size

How to determine the folder in a directory – size

It is a Python script for a Linux operating system: The results are (yes the folders haven the German language, because I live in Germany, and I’m German – sorry for that) Größen der Unterverzeichnisse in /home/sven/Musik 1980-1989: 6,8GMusikvideo: 12M1970-1979: 3,2Gsonstige_Musik: 6,7G1990-1999: 121MPodcast: 5,8G1960-1969: 2,7GWeihnachten: 921M2000-2009: 8,5G2010-2019: 1,7GHörbücher: 92MKlassik: 1,5GMusikalben: 3,5Gerster_Versuch: 136K1950-1959: 95M

Pip could not update the module torch

Pip could not update the module torch

This morning, I tried to update my Python packages with the command: pip3 list -o –format columns| cut -d‘ ‚ -f1|xargs -n1 pip install -U but I could not update the module torch. Here are the messages: Downloading torch-2.8.0-cp313-cp313-manylinux_2_28_x86_64.whl (887.9 MB)    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 887.9/887.9 MB 6.7 MB/s  0:01:24 Downloading nvidia_cublas_cu12-12.8.4.1-py3-none-manylinux_2_27_x86_64.whl (594.3 MB)    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 594.3/594.3 MB 9.3 MB/s  0:00:54 Downloading nvidia_cuda_cupti_cu12-12.8.90-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (10.2 MB)    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 10.2/10.2 MB 6.7 MB/s  0:00:01 Downloading nvidia_cuda_nvrtc_cu12-12.8.93-py3-none-manylinux2010_x86_64.manylinux_2_12_x86_64.whl (88.0 MB)    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 88.0/88.0 MB 9.5 MB/s …

Weiterlesen Weiterlesen