Windows ModuleNotFoundError: Kein Modul mit dem Namen „Crypto“, obwohl Pycryptodome installiert istPython

Python-Programme
Guest
 Windows ModuleNotFoundError: Kein Modul mit dem Namen „Crypto“, obwohl Pycryptodome installiert ist

Post by Guest »

Ich versuche, die Pycryptodome -Bibliothek in meinem Python -Projekt zu verwenden, aber ich erhalte immer wieder den folgenden Fehler: < /p>

Code: Select all

ModuleNotFoundError: No module named 'Crypto'
Das habe ich bisher gemacht:
Ich habe Pycryptodome mit pip installiert:

Code: Select all

PS C:\Users\Nathan> pip install pycryptodome
Requirement already satisfied: pycryptodome in c:\users\nathan\appdata\local\programs\python\python311\lib\site-packages (3.21.0)
< /code>
Überprüft die Installation: < /p>
PS C:\Users\Nathan> pip show pycryptodome
Name: pycryptodome
Version: 3.21.0
Summary: Cryptographic library for Python
Home-page: https://www.pycryptodome.org
Author: Helder Eijs
Author-email: helderijs@gmail.com
License: BSD, Public Domain
Location: C:\Users\Nathan\AppData\Local\Programs\Python\Python311\Lib\site-packages
Requires:
Required-by: cart, eth-keyfile
< /code>
getestetes Importieren von Krypto in Python: < /p>
PS C:\Users\Nathan> python
>>> from Crypto.Cipher import AES
Traceback (most recent call last):
File "", line 1, in 
ModuleNotFoundError: No module named 'Crypto'
Deinstallation und Neuinstallation versucht:

Code: Select all

PS C:\Users\Nathan> pip uninstall pycryptodome -y
Found existing installation: pycryptodome 3.21.0
Uninstalling pycryptodome-3.21.0:
Successfully uninstalled pycryptodome-3.21.0
PS C:\Users\Nathan> pip install --force-reinstall pycryptodome
Collecting pycryptodome
Using cached pycryptodome-3.21.0-cp36-abi3-win_amd64.whl.metadata (3.4 kB)
Using cached pycryptodome-3.21.0-cp36-abi3-win_amd64.whl (1.8 MB)
Installing collected packages: pycryptodome
Successfully installed pycryptodome-3.21.0
< /code>
Aber der Fehler bleibt bestehen.PS C:\Users\Nathan> pip uninstall pycrypto
WARNING: Skipping pycrypto as it is not installed.
Der Python-Pfad wurde überprüft, um sicherzustellen, dass er das richtige Site-Packages-Verzeichnis enthält:
>>> import sys
>>> print(sys.path)
['', 'C:\\Users\\Nathan\\AppData\\Local\\Programs\\Python\\Python311\\python311.zip', 'C:\\Users\\Nathan\\AppData\\Local\\Programs\\Python\\Python311\\DLLs', 'C:\\Users\\Nathan\\AppData\\Local\\Programs\\Python\\Python311\\Lib', 'C:\\Users\\Nathan\\AppData\\Local\\Programs\\Python\\Python311', 'C:\\Users\\Nathan\\AppData\\Roaming\\Python\\Python311\\site-packages', 'C:\\Users\\Nathan\\AppData\\Local\\Programs\\Python\\Python311\\Lib\\site-packages', 'C:\\Users\\Nathan\\AppData\\Local\\Programs\\Python\\Python311\\Lib\\site-packages\\win32', 'C:\\Users\\Nathan\\AppData\\Local\\Programs\\Python\\Python311\\Lib\\site-packages\\win32\\lib', 'C:\\Users\\Nathan\\AppData\\Local\\Programs\\Python\\Python311\\Lib\\site-packages\\Pythonwin']
< /code>
Das Verzeichnis c: \ user \ nathan \ appdata \ local \ programme \ python \ python311 \ lib \ Site-Packages ist aufgeführt. . < /p>
Warum bekomme ich immer noch ModulenotFoundError: Kein Modul namens 'Crypto', obwohl Pycryptodom installiert und im richtigen Verzeichnis befindet? Welche Schritte kann ich unternehmen, um dieses Problem zu lösen?

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post