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

Python-Programme
Anonymous
 Warum kann die Modulbasis nicht in Pythons virtueller Umgebung geladen werden?

Post by Anonymous »

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?

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post