2017-04-12 29 views
1

在我的Windows機器上,當我使用this page上的指令構建cryptography程序包時,我最終得到了這些.pyd文件車輪:爲什麼在密碼學輪盤中.pyd文件的名字是「cp35-win32」

  • _openssl.cp35-win32.pyd
  • _constant_time.cp35-win32.pyd
  • _padding.cp35-win32.pyd

基於PY上已建成的車輪PI,我期待這些名字的文件,而不是:

  • _openssl.pyd
  • _constant_time.pyd
  • _padding.pyd

你知道爲什麼我在結束了cp35-win32文件名?這是目前的一個問題,因爲我有cryptography代碼都與此有關的名字裏面差別導入錯誤:

File "c:\long_path_prefix\.tox\lt\lib\site-packages\cryptography\hazmat\backends\openssl\__init__.py", line 7, in <module> 
    from cryptography.hazmat.backends.openssl.backend import backend 
    File "c:\long_path_prefix\.tox\lt\lib\site-packages\cryptography\hazmat\backends\openssl\backend.py", line 51, in <module> 
    from cryptography.hazmat.bindings._openssl import ffi as _ffi 
ImportError: DLL load failed: The specified module could not be found. 

有一個好的一天!

回答

2

這些標籤是基於pep 427

默認情況下會添加它們,具體取決於車輪所在的平臺。

就你而言,你在win32上構建了自己的輪子,並且它與CPython3.5兼容。

+0

這確實符合PEP 427.但是,它似乎會導致'cryptography'代碼中的導入語句出現問題。我已經更新了原始問題以包含導入錯誤的堆棧跟蹤。 – GDICommander

相關問題