Python ';ModuleNotFoundError';安装包之后

Python ';ModuleNotFoundError';安装包之后,python,cmd,pip,Python,Cmd,Pip,我正在使用一个名为cryptography的模块,并尝试通过以下方式安装该模块: C:\Users\Administrator\Desktop>python -m pip install cryptography 以下是cmd窗口的副本: Collecting cryptography Using cached cryptography-3.2-cp38-cp38-win32.whl (1.3 MB) Requirement already satisfied: six>=

我正在使用一个名为cryptography的模块,并尝试通过以下方式安装该模块:

C:\Users\Administrator\Desktop>python -m pip install cryptography
以下是cmd窗口的副本:

Collecting cryptography

  Using cached cryptography-3.2-cp38-cp38-win32.whl (1.3 MB)

Requirement already satisfied: six>=1.4.1 in c:\users\administrator\appdata\roaming\python\python38\site-packages (from cryptography) (1.15.0)

Requirement already satisfied: cffi!=1.11.3,>=1.8 in c:\program files (x86)\python38\lib\site-packages (from cryptography) (1.14.3)

Requirement already satisfied: pycparser in c:\program files (x86)\python38\lib\site-packages (from cffi!=1.11.3,>=1.8->cryptography) (2.20)

Installing collected packages: cryptography
Successfully installed cryptography-3.2
然后,当我尝试使用该程序时,它根本不起作用:

C:\Users\Administrator\Desktop>main.py
Traceback (most recent call last):
  File "C:\Users\Administrator\Desktop\ape esse\main.py", line 3, in <module>
    from cryptography.fernet import Fernet
ModuleNotFoundError: No module named 'cryptography'
C:\Users\Administrator\Desktop>main.py
回溯(最近一次呼叫最后一次):
文件“C:\Users\Administrator\Desktop\ape-esse\main.py”,第3行,在
从cryptography.fernet导入fernet
ModuleNotFoundError:没有名为“cryptography”的模块
它给出了相同的错误,好像没有安装,我不知道该怎么办

我的一个朋友说我的
python
安装有问题,但我已经修复并重新安装了它,它仍然会出现同样的错误。

我现在使用
pip-install-cryptography——没有缓存目录
,在python 3.8.5上运行得非常好。
所以您可能想试试。

python main.py会给出不同的结果吗?似乎您可以安装两种不同的python。遗憾的是,它不会给出相同的结果如果您安装了多个python,当您键入“where python”时会发生什么情况?使用您提供的命令,仍然是相同的错误。当您键入“where python”时,输出是什么?C:\Program Files(x86)\Python38\python.exe您有windows 32位还是64位?