Warum kann die Modulbasis nicht in Pythons virtueller Umgebung geladen werden?

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Warum kann die Modulbasis nicht in Pythons virtueller Umgebung geladen werden?

by Anonymous » 01 Feb 2025, 08:11

UNO -Modul befindet sich in der UNO -Einführung, anstatt nicht das verlassene Paket.

Code: Select all

debian@debian:~$ python3
Python 3.11.2 (main, Nov 30 2024, 21:22:50) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import uno
>>>
< /code>
Erstellen Sie die virtuelle Umgebung: < /p>
sudo apt install python3.11-venv
python3 -m venv strange
cd  strange
source  bin/activate
< /code>
Ich habe die Modulbasis installiert: < /p>
(strange) debian@debian:~/strange$ pip install base
Requirement already satisfied: base in ./lib/python3.11/site-packages (0.0.0)
< /code>
In Python3 eingeben: < /p>
(strange) debian@debian:~/strange$ python3
Python 3.11.2 (main, Nov 30 2024, 21:22:50) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
< /code>
Importieren Sie UNO: < /p>
>>> import uno
Traceback (most recent call last):
File "", line 1, in 
File "/home/debian/strange/lib/python3.11/site-packages/uno/__init__.py", line 4, in 
from base import Element, Css, Payload, UnoBaseFeature, UnoBaseField
ModuleNotFoundError: No module named 'base'
>>> import base
Traceback (most recent call last):
File "", line 1, in 
ModuleNotFoundError: No module named 'base'
Warum kann Uno in virtueller Umgebung nicht laden?

Top