简体   繁体   English

无法使用 Python 安装模块

[英]Can't install module with Python

I try to install a cryptography module on Python, im making:我尝试在 Python 上安装加密模块,我正在制作:

pip install cryptography

And if I try to import it:如果我尝试导入它:

ModuleNotFoundError: No module named 'cryptography'

I also tried an another command:我还尝试了另一个命令:

python -m pip install cryptography

And this time I have... :这一次我有......:

C:\msys64\mingw64\bin\python.exe: No module named pip

So, I found the issue, it was some path problem:所以,我发现了问题,这是一些路径问题:

Panel config.>System&Security>System>Advanced>Var.面板配置。>系统和安全>系统>高级>Var。 Environnement环境

And I add: C:\Users\alimacher\AppData\Local\Programs\Python\Python37\Scripts我添加: C:\Users\alimacher\AppData\Local\Programs\Python\Python37\Scripts

Now it works... Thanks All !现在它可以工作了......谢谢大家!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM