【问题标题】:Visual studio required for pycrypto? [duplicate]pycrypto 需要 Visual Studio? [复制]
【发布时间】:2019-04-29 23:57:33
【问题描述】:

我是 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++,我可以毫无问题地安装。但尚未针对库测试代码

【问题讨论】:

  • @Tomothy32 set USERPROFILE - 这给了我的C:\users\currentusername

标签: python python-3.x pycrypto


【解决方案1】:

我认为Dave's answer 的回答可能会帮助您克服所面临的安装问题。至于 Python 3.7 上 pycrypto 的替代品,你可以试试PyCryptodome

【讨论】:

  • 我无法使用 Microsoft Visual C++ 14.0,因为我无法控制安装。感谢 PyCryptodome。我安装了它。我正在尝试查看 Pycrytpo 和 Pycrytpodome 的功能差异。你能提供一些细节吗?
  • PyCryptodome 是 PyCrypto 的一个分支。它被积极维护并具有 PyCrypto 提供的所有功能。它已经在 Windows 上使用 Python 3.5 进行了测试。查看文档。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-12-04
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多