还没有看到这个发布在任何地方,我为 Windows 安装了 OpenSSL。安装时遇到同样的错误Scrypt
Python3,Windows 10。尝试使用不同版本的 python,但无济于事。
Running setup.py install for scrypt ... error
ERROR: Command errored out with exit status 1:
command: 'c:\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Victor\\AppData\\Local\\Temp\\pip-install-skwtkpny\\scrypt\\setup.py'"'"'; __file__='"'"'C:\\Users\\Victor\\AppData\\Local
\\Temp\\pip-install-skwtkpny\\scrypt\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C
:\Users\Victor\AppData\Local\Temp\pip-record-vzndvgwk\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\python39\Include\scrypt'
cwd: C:\Users\Victor\AppData\Local\Temp\pip-install-skwtkpny\scrypt\
Complete output (50 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\scrypt
copying scrypt\scrypt.py -> build\lib.win-amd64-3.9\scrypt
copying scrypt\__init__.py -> build\lib.win-amd64-3.9\scrypt
creating build\lib.win-amd64-3.9\scrypt\tests
copying scrypt\tests\test_scrypt.py -> build\lib.win-amd64-3.9\scrypt\tests
copying scrypt\tests\test_scrypt_c_module.py -> build\lib.win-amd64-3.9\scrypt\tests
copying scrypt\tests\test_scrypt_py2x.py -> build\lib.win-amd64-3.9\scrypt\tests
copying scrypt\tests\test_scrypt_py3x.py -> build\lib.win-amd64-3.9\scrypt\tests
copying scrypt\tests\__init__.py -> build\lib.win-amd64-3.9\scrypt\tests
copying scrypt\tests\ciphertexts.csv -> build\lib.win-amd64-3.9\scrypt\tests
copying scrypt\tests\hashvectors.csv -> build\lib.win-amd64-3.9\scrypt\tests
running build_ext
building '_scrypt' extension
creating build\temp.win-amd64-3.9
creating build\temp.win-amd64-3.9\Release
creating build\temp.win-amd64-3.9\Release\scrypt-1.2.1
creating build\temp.win-amd64-3.9\Release\scrypt-1.2.1\lib
creating build\temp.win-amd64-3.9\Release\scrypt-1.2.1\lib\crypto
creating build\temp.win-amd64-3.9\Release\scrypt-1.2.1\lib\scryptenc
creating build\temp.win-amd64-3.9\Release\scrypt-1.2.1\lib\util
creating build\temp.win-amd64-3.9\Release\scrypt-1.2.1\libcperciva
creating build\temp.win-amd64-3.9\Release\scrypt-1.2.1\libcperciva\alg
creating build\temp.win-amd64-3.9\Release\scrypt-1.2.1\libcperciva\crypto
creating build\temp.win-amd64-3.9\Release\scrypt-1.2.1\libcperciva\util
creating build\temp.win-amd64-3.9\Release\scrypt-windows-stubs
creating build\temp.win-amd64-3.9\Release\src
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DHAVE_CONFIG_H -Dinline=__inline -Iscrypt-1.2.1 -Iscrypt-1.2.1/lib -Iscrypt-1.2.
1/lib/scryptenc -Iscrypt-1.2.1/lib/crypto -Iscrypt-1.2.1/lib/util -Iscrypt-1.2.1/libcperciva/cpusupport -Iscrypt-1.2.1/libcperciva/alg -Iscrypt-1.2.1/libcperciva/util -Iscrypt-1.2.1/libcperciva/crypto -Ic:\OpenSSL-Win64\include -Isc
rypt-windows-stubs/include -Ic:\python39\include -Ic:\python39\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Co
mmunity\VC\Tools\MSVC\14.28.29333\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0
\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt /Tcscrypt-1.2.1/lib/
crypto/crypto_scrypt.c /Fobuild\temp.win-amd64-3.9\Release\scrypt-1.2.1/lib/crypto/crypto_scrypt.obj
crypto_scrypt.c
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DHAVE_CONFIG_H -Dinline=__inline -Iscrypt-1.2.1 -Iscrypt-1.2.1/lib -Iscrypt-1.2.
1/lib/scryptenc -Iscrypt-1.2.1/lib/crypto -Iscrypt-1.2.1/lib/util -Iscrypt-1.2.1/libcperciva/cpusupport -Iscrypt-1.2.1/libcperciva/alg -Iscrypt-1.2.1/libcperciva/util -Iscrypt-1.2.1/libcperciva/crypto -Ic:\OpenSSL-Win64\include -Isc
rypt-windows-stubs/include -Ic:\python39\include -Ic:\python39\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Co
mmunity\VC\Tools\MSVC\14.28.29333\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0
\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt /Tcscrypt-1.2.1/lib/
crypto/crypto_scrypt_smix.c /Fobuild\temp.win-amd64-3.9\Release\scrypt-1.2.1/lib/crypto/crypto_scrypt_smix.obj
crypto_scrypt_smix.c
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DHAVE_CONFIG_H -Dinline=__inline -Iscrypt-1.2.1 -Iscrypt-1.2.1/lib -Iscrypt-1.2.
1/lib/scryptenc -Iscrypt-1.2.1/lib/crypto -Iscrypt-1.2.1/lib/util -Iscrypt-1.2.1/libcperciva/cpusupport -Iscrypt-1.2.1/libcperciva/alg -Iscrypt-1.2.1/libcperciva/util -Iscrypt-1.2.1/libcperciva/crypto -Ic:\OpenSSL-Win64\include -Isc
rypt-windows-stubs/include -Ic:\python39\include -Ic:\python39\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Co
mmunity\VC\Tools\MSVC\14.28.29333\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0
\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt /Tcscrypt-1.2.1/lib/
crypto/crypto_scrypt_smix_sse2.c /Fobuild\temp.win-amd64-3.9\Release\scrypt-1.2.1/lib/crypto/crypto_scrypt_smix_sse2.obj
crypto_scrypt_smix_sse2.c
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DHAVE_CONFIG_H -Dinline=__inline -Iscrypt-1.2.1 -Iscrypt-1.2.1/lib -Iscrypt-1.2.
1/lib/scryptenc -Iscrypt-1.2.1/lib/crypto -Iscrypt-1.2.1/lib/util -Iscrypt-1.2.1/libcperciva/cpusupport -Iscrypt-1.2.1/libcperciva/alg -Iscrypt-1.2.1/libcperciva/util -Iscrypt-1.2.1/libcperciva/crypto -Ic:\OpenSSL-Win64\include -Isc
rypt-windows-stubs/include -Ic:\python39\include -Ic:\python39\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Co
mmunity\VC\Tools\MSVC\14.28.29333\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0
\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt /Tcscrypt-1.2.1/lib/
scryptenc/scryptenc.c /Fobuild\temp.win-amd64-3.9\Release\scrypt-1.2.1/lib/scryptenc/scryptenc.obj
scryptenc.c
scrypt-1.2.1/lib/scryptenc/scryptenc.c(125): warning C4244: '=': conversion from 'size_t' to 'double', possible loss of data
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DHAVE_CONFIG_H -Dinline=__inline -Iscrypt-1.2.1 -Iscrypt-1.2.1/lib -Iscrypt-1.2.
1/lib/scryptenc -Iscrypt-1.2.1/lib/crypto -Iscrypt-1.2.1/lib/util -Iscrypt-1.2.1/libcperciva/cpusupport -Iscrypt-1.2.1/libcperciva/alg -Iscrypt-1.2.1/libcperciva/util -Iscrypt-1.2.1/libcperciva/crypto -Ic:\OpenSSL-Win64\include -Isc
rypt-windows-stubs/include -Ic:\python39\include -Ic:\python39\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Co
mmunity\VC\Tools\MSVC\14.28.29333\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0
\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt /Tcscrypt-1.2.1/lib/
scryptenc/scryptenc_cpuperf.c /Fobuild\temp.win-amd64-3.9\Release\scrypt-1.2.1/lib/scryptenc/scryptenc_cpuperf.obj
scryptenc_cpuperf.c
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DHAVE_CONFIG_H -Dinline=__inline -Iscrypt-1.2.1 -Iscrypt-1.2.1/lib -Iscrypt-1.2.
1/lib/scryptenc -Iscrypt-1.2.1/lib/crypto -Iscrypt-1.2.1/lib/util -Iscrypt-1.2.1/libcperciva/cpusupport -Iscrypt-1.2.1/libcperciva/alg -Iscrypt-1.2.1/libcperciva/util -Iscrypt-1.2.1/libcperciva/crypto -Ic:\OpenSSL-Win64\include -Isc
rypt-windows-stubs/include -Ic:\python39\include -Ic:\python39\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Co
mmunity\VC\Tools\MSVC\14.28.29333\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0
\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt /Tcscrypt-1.2.1/lib/
util/memlimit.c /Fobuild\temp.win-amd64-3.9\Release\scrypt-1.2.1/lib/util/memlimit.obj
memlimit.c
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DHAVE_CONFIG_H -Dinline=__inline -Iscrypt-1.2.1 -Iscrypt-1.2.1/lib -Iscrypt-1.2.
1/lib/scryptenc -Iscrypt-1.2.1/lib/crypto -Iscrypt-1.2.1/lib/util -Iscrypt-1.2.1/libcperciva/cpusupport -Iscrypt-1.2.1/libcperciva/alg -Iscrypt-1.2.1/libcperciva/util -Iscrypt-1.2.1/libcperciva/crypto -Ic:\OpenSSL-Win64\include -Isc
rypt-windows-stubs/include -Ic:\python39\include -Ic:\python39\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Co
mmunity\VC\Tools\MSVC\14.28.29333\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0
\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt /Tcscrypt-1.2.1/libc
perciva/alg/sha256.c /Fobuild\temp.win-amd64-3.9\Release\scrypt-1.2.1/libcperciva/alg/sha256.obj
sha256.c
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DHAVE_CONFIG_H -Dinline=__inline -Iscrypt-1.2.1 -Iscrypt-1.2.1/lib -Iscrypt-1.2.
1/lib/scryptenc -Iscrypt-1.2.1/lib/crypto -Iscrypt-1.2.1/lib/util -Iscrypt-1.2.1/libcperciva/cpusupport -Iscrypt-1.2.1/libcperciva/alg -Iscrypt-1.2.1/libcperciva/util -Iscrypt-1.2.1/libcperciva/crypto -Ic:\OpenSSL-Win64\include -Isc
rypt-windows-stubs/include -Ic:\python39\include -Ic:\python39\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Co
mmunity\VC\Tools\MSVC\14.28.29333\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0
\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt /Tcscrypt-1.2.1/libc
perciva/crypto/crypto_aes.c /Fobuild\temp.win-amd64-3.9\Release\scrypt-1.2.1/libcperciva/crypto/crypto_aes.obj
crypto_aes.c
scrypt-1.2.1/libcperciva/crypto/crypto_aes.c(6): fatal error C1083: Cannot open include file: 'openssl/aes.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.28.29333\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Victor\\AppData\\Local\\Temp\\pip-install-skwtkpny\\scrypt\\setup.py'"'"'; __file__='"'"'
C:\\Users\\Victor\\AppData\\Local\\Temp\\pip-install-skwtkpny\\scrypt\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"
'exec'"'"'))' install --record 'C:\Users\Victor\AppData\Local\Temp\pip-record-vzndvgwk\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\python39\Include\scrypt' Check the logs for full command
output.
Stackoverflow 不会让我发布,因为它说我的大部分帖子都是代码,但它只是错误日志,所以我发布了这个,所以它会让我发布。我想我已经提供了足够的信息