我是Python新手。所以,请温柔点
我尝试安装 pycrypto 以使用 encryption and deceryption
。我使用Python命令pip install pycrypto
。运行命令时收到以下错误:
error: [WinError 3] The system cannot find the path specified: 'C:\\Program Files\\Microsoft Visual Studio 14.0\\VC\\PlatformSDK\\lib'
1) 由于错误涉及 Microsoft Visual Studio,是否必须安装 Visual Studio 才能安装 pycrypto?我已经验证了系统中的路径(已经有用于 C# 项目的 Visual Studio)。我有路径 - c:\Program Files\Microsoft Visual Studio 14.0\vc\
,但PlatformSDK文件夹不存在
2) c:\Program Files\Microsoft Visual Studio 14.0\vc\
- 我可以知道为什么它提到VC吗?
3)如果不需要 Visual Studio,我该如何修复错误?
其他信息 - 我已在计算机中安装了 Python 3.7。
更新:根据 Moses 的回答,Pycryptodome 不需要 Microsoft Visual C++,我可以毫无问题地安装。但尚未针对库测试代码
最佳答案
我认为Dave's answer答案可能会帮助您解决所面临的安装问题。至于Python 3.7上pycrypto的替代品,你可以尝试PyCryptodome
关于python - pycrypto 需要 Visual Studio 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53513303/