Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

issues with the installation and setup of python on linux

Here you can discuss every aspect of Debian. Note: not for support requests!
Post Reply
Message
Author
User avatar
say_hello
Posts: 36
Joined: 2019-10-13 09:58

issues with the installation and setup of python on linux

#1 Post by say_hello »

hello dear experts - i struggle with the installation and setup of python on a linux-machine

Code: Select all


Passwort: 
root@mx:/home/martin# 
root@mx:/home/martin# wget -qO - https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg | sudo apt-key add -
OK
root@mx:/home/martin# 
root@mx:/home/martin# echo 'deb https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/repos/debs/ vscodium main' | sudo tee --append /etc/apt/sources.list.d/vscodium.list
deb https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/repos/debs/ vscodium main
root@mx:/home/martin# 
root@mx:/home/martin# sudo apt update && sudo apt install codium
OK:1 http://deb.debian.org/debian buster-updates InRelease
Ign:2 http://dl.google.com/linux/chrome/deb stable InRelease                                       
OK:3 http://ftp.halifax.rwth-aachen.de/mxlinux/packages/mx/repo buster InRelease                   
OK:4 http://deb.debian.org/debian buster InRelease                                                 
OK:5 http://deb.debian.org/debian-security buster/updates InRelease                                
OK:6 http://dl.google.com/linux/chrome/deb stable Release                                          
OK:7 https://packagecloud.io/AtomEditor/atom/any any InRelease                                     
Holen:9 https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/repos/debs vscodium InRelease [3.828 B]
Holen:10 https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/repos/debs vscodium/main amd64 Packages [603 B]
Es wurden 4.431 B in 5 s geholt (822 B/s).
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.       
Statusinformationen werden eingelesen.... Fertig
Aktualisierung für 49 Pakete verfügbar. Führen Sie »apt list --upgradable« aus, um sie anzuzeigen.
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.       
Statusinformationen werden eingelesen.... Fertig
Die folgenden NEUEN Pakete werden installiert:
  codium
0 aktualisiert, 1 neu installiert, 0 zu entfernen und 49 nicht aktualisiert.
Es müssen 64,2 MB an Archiven heruntergeladen werden.
Nach dieser Operation werden 269 MB Plattenplatz zusätzlich benutzt.
Holen:1 https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/repos/debs vscodium/main amd64 codium amd64 1.43.1-1584565098 [64,2 MB]
Es wurden 64,2 MB in 45 s geholt (1.436 kB/s).                                                     
Vormals nicht ausgewähltes Paket codium wird gewählt.
(Lese Datenbank ... 335525 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../codium_1.43.1-1584565098_amd64.deb ...
Entpacken von codium (1.43.1-1584565098) ...
codium (1.43.1-1584565098) wird eingerichtet ...
Trigger für mime-support (3.62) werden verarbeitet ...
Trigger für desktop-file-utils (0.23-4) werden verarbeitet ...
root@mx:/home/martin# 
root@mx:/home/martin# python3 -m venv scrapingvenv
The virtual environment was not created successfully because ensurepip is not
available.  On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.

    apt-get install python3-venv

You may need to use sudo with that command.  After installing the python3-venv
package, recreate your virtual environment.

Failing command: ['/home/martin/scrapingvenv/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']

root@mx:/home/martin# ^C
root@mx:/home/martin# 
root@mx:/home/martin# python3 -m venv scrapingvenv
The virtual environment was not created successfully because ensurepip is not
available.  On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.

    apt-get install python3-venv

You may need to use sudo with that command.  After installing the python3-venv
package, recreate your virtual environment.

Failing command: ['/home/martin/scrapingvenv/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']

root@mx:/home/martin# 

you see - exactly in the last part - i have issues:

Code: Select all

martin@mx:~
$ python3 -m venv scrapingvenv
The virtual environment was not created successfully because ensurepip is not
available.  On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.

    apt-get install python3-venv

You may need to use sudo with that command.  After installing the python3-venv
package, recreate your virtual environment.

Failing command: ['/home/martin/scrapingvenv/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']

martin@mx:~
$ 


hmm - ineed to have further investigations...

User avatar
pylkko
Posts: 1802
Joined: 2014-11-06 19:02

Re: issues with the installation and setup of python on linu

#2 Post by pylkko »

What is the question? Did you install the package?

User avatar
None1975
df -h | participant
df -h | participant
Posts: 1398
Joined: 2015-11-29 18:23
Location: Russia, Kaliningrad
Has thanked: 46 times
Been thanked: 68 times

Re: issues with the installation and setup of python on linu

#3 Post by None1975 »

Just install this package

Code: Select all

#apt install python3-venv
and recreate your virtual environment.
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github

Post Reply