安装 Bitcoinlib 时出错 | Python3、Windows10
Error installing Bitcoinlib | Python3, Windows10
还没有在任何地方看到它 posted,我为 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 Studio19\Community\VC\Tools\MSVC.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 Studio19\Community\VC\Tools\MSVC.28.29333\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio19\Co
mmunity\VC\Tools\MSVC.28.29333\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK.8\include\um -IC:\Program Files (x86)\Windows Kits\include.0.18362.0\ucrt -IC:\Program Files (x86)\Windows Kits\include.0.18362.0
\shared -IC:\Program Files (x86)\Windows Kits\include.0.18362.0\um -IC:\Program Files (x86)\Windows Kits\include.0.18362.0\winrt -IC:\Program Files (x86)\Windows Kits\include.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 Studio19\Community\VC\Tools\MSVC.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 Studio19\Community\VC\Tools\MSVC.28.29333\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio19\Co
mmunity\VC\Tools\MSVC.28.29333\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK.8\include\um -IC:\Program Files (x86)\Windows Kits\include.0.18362.0\ucrt -IC:\Program Files (x86)\Windows Kits\include.0.18362.0
\shared -IC:\Program Files (x86)\Windows Kits\include.0.18362.0\um -IC:\Program Files (x86)\Windows Kits\include.0.18362.0\winrt -IC:\Program Files (x86)\Windows Kits\include.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 Studio19\Community\VC\Tools\MSVC.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 Studio19\Community\VC\Tools\MSVC.28.29333\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio19\Co
mmunity\VC\Tools\MSVC.28.29333\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK.8\include\um -IC:\Program Files (x86)\Windows Kits\include.0.18362.0\ucrt -IC:\Program Files (x86)\Windows Kits\include.0.18362.0
\shared -IC:\Program Files (x86)\Windows Kits\include.0.18362.0\um -IC:\Program Files (x86)\Windows Kits\include.0.18362.0\winrt -IC:\Program Files (x86)\Windows Kits\include.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 Studio19\Community\VC\Tools\MSVC.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 Studio19\Community\VC\Tools\MSVC.28.29333\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio19\Co
mmunity\VC\Tools\MSVC.28.29333\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK.8\include\um -IC:\Program Files (x86)\Windows Kits\include.0.18362.0\ucrt -IC:\Program Files (x86)\Windows Kits\include.0.18362.0
\shared -IC:\Program Files (x86)\Windows Kits\include.0.18362.0\um -IC:\Program Files (x86)\Windows Kits\include.0.18362.0\winrt -IC:\Program Files (x86)\Windows Kits\include.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 Studio19\Community\VC\Tools\MSVC.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 Studio19\Community\VC\Tools\MSVC.28.29333\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio19\Co
mmunity\VC\Tools\MSVC.28.29333\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK.8\include\um -IC:\Program Files (x86)\Windows Kits\include.0.18362.0\ucrt -IC:\Program Files (x86)\Windows Kits\include.0.18362.0
\shared -IC:\Program Files (x86)\Windows Kits\include.0.18362.0\um -IC:\Program Files (x86)\Windows Kits\include.0.18362.0\winrt -IC:\Program Files (x86)\Windows Kits\include.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 Studio19\Community\VC\Tools\MSVC.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 Studio19\Community\VC\Tools\MSVC.28.29333\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio19\Co
mmunity\VC\Tools\MSVC.28.29333\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK.8\include\um -IC:\Program Files (x86)\Windows Kits\include.0.18362.0\ucrt -IC:\Program Files (x86)\Windows Kits\include.0.18362.0
\shared -IC:\Program Files (x86)\Windows Kits\include.0.18362.0\um -IC:\Program Files (x86)\Windows Kits\include.0.18362.0\winrt -IC:\Program Files (x86)\Windows Kits\include.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 Studio19\Community\VC\Tools\MSVC.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 Studio19\Community\VC\Tools\MSVC.28.29333\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio19\Co
mmunity\VC\Tools\MSVC.28.29333\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK.8\include\um -IC:\Program Files (x86)\Windows Kits\include.0.18362.0\ucrt -IC:\Program Files (x86)\Windows Kits\include.0.18362.0
\shared -IC:\Program Files (x86)\Windows Kits\include.0.18362.0\um -IC:\Program Files (x86)\Windows Kits\include.0.18362.0\winrt -IC:\Program Files (x86)\Windows Kits\include.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 Studio19\Community\VC\Tools\MSVC.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 Studio19\Community\VC\Tools\MSVC.28.29333\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio19\Co
mmunity\VC\Tools\MSVC.28.29333\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK.8\include\um -IC:\Program Files (x86)\Windows Kits\include.0.18362.0\ucrt -IC:\Program Files (x86)\Windows Kits\include.0.18362.0
\shared -IC:\Program Files (x86)\Windows Kits\include.0.18362.0\um -IC:\Program Files (x86)\Windows Kits\include.0.18362.0\winrt -IC:\Program Files (x86)\Windows Kits\include.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.
Whosebug 不会让我 post 因为它说我的大部分 post 是代码,但它只是错误日志所以我 posting 这个所以它会让我post。我想我已经提供了足够的信息
Cannot open include file: 'openssl/aes.h': No such file or directory
您需要 OpenSSL 开发文件来构建该库。这个答案似乎相关:How to use OpenSSL with Visual Studio
做不到这一点,看起来 scrypt
在 Windows 上有 Python 3.8 的轮子(预编译二进制包):https://pypi.org/project/scrypt/#files
因此,如果您可以切换到 Python 3.8,那也可能会解决您的问题。
还没有在任何地方看到它 posted,我为 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 Studio19\Community\VC\Tools\MSVC.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 Studio19\Community\VC\Tools\MSVC.28.29333\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio19\Co
mmunity\VC\Tools\MSVC.28.29333\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK.8\include\um -IC:\Program Files (x86)\Windows Kits\include.0.18362.0\ucrt -IC:\Program Files (x86)\Windows Kits\include.0.18362.0
\shared -IC:\Program Files (x86)\Windows Kits\include.0.18362.0\um -IC:\Program Files (x86)\Windows Kits\include.0.18362.0\winrt -IC:\Program Files (x86)\Windows Kits\include.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 Studio19\Community\VC\Tools\MSVC.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 Studio19\Community\VC\Tools\MSVC.28.29333\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio19\Co
mmunity\VC\Tools\MSVC.28.29333\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK.8\include\um -IC:\Program Files (x86)\Windows Kits\include.0.18362.0\ucrt -IC:\Program Files (x86)\Windows Kits\include.0.18362.0
\shared -IC:\Program Files (x86)\Windows Kits\include.0.18362.0\um -IC:\Program Files (x86)\Windows Kits\include.0.18362.0\winrt -IC:\Program Files (x86)\Windows Kits\include.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 Studio19\Community\VC\Tools\MSVC.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 Studio19\Community\VC\Tools\MSVC.28.29333\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio19\Co
mmunity\VC\Tools\MSVC.28.29333\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK.8\include\um -IC:\Program Files (x86)\Windows Kits\include.0.18362.0\ucrt -IC:\Program Files (x86)\Windows Kits\include.0.18362.0
\shared -IC:\Program Files (x86)\Windows Kits\include.0.18362.0\um -IC:\Program Files (x86)\Windows Kits\include.0.18362.0\winrt -IC:\Program Files (x86)\Windows Kits\include.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 Studio19\Community\VC\Tools\MSVC.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 Studio19\Community\VC\Tools\MSVC.28.29333\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio19\Co
mmunity\VC\Tools\MSVC.28.29333\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK.8\include\um -IC:\Program Files (x86)\Windows Kits\include.0.18362.0\ucrt -IC:\Program Files (x86)\Windows Kits\include.0.18362.0
\shared -IC:\Program Files (x86)\Windows Kits\include.0.18362.0\um -IC:\Program Files (x86)\Windows Kits\include.0.18362.0\winrt -IC:\Program Files (x86)\Windows Kits\include.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 Studio19\Community\VC\Tools\MSVC.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 Studio19\Community\VC\Tools\MSVC.28.29333\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio19\Co
mmunity\VC\Tools\MSVC.28.29333\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK.8\include\um -IC:\Program Files (x86)\Windows Kits\include.0.18362.0\ucrt -IC:\Program Files (x86)\Windows Kits\include.0.18362.0
\shared -IC:\Program Files (x86)\Windows Kits\include.0.18362.0\um -IC:\Program Files (x86)\Windows Kits\include.0.18362.0\winrt -IC:\Program Files (x86)\Windows Kits\include.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 Studio19\Community\VC\Tools\MSVC.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 Studio19\Community\VC\Tools\MSVC.28.29333\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio19\Co
mmunity\VC\Tools\MSVC.28.29333\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK.8\include\um -IC:\Program Files (x86)\Windows Kits\include.0.18362.0\ucrt -IC:\Program Files (x86)\Windows Kits\include.0.18362.0
\shared -IC:\Program Files (x86)\Windows Kits\include.0.18362.0\um -IC:\Program Files (x86)\Windows Kits\include.0.18362.0\winrt -IC:\Program Files (x86)\Windows Kits\include.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 Studio19\Community\VC\Tools\MSVC.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 Studio19\Community\VC\Tools\MSVC.28.29333\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio19\Co
mmunity\VC\Tools\MSVC.28.29333\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK.8\include\um -IC:\Program Files (x86)\Windows Kits\include.0.18362.0\ucrt -IC:\Program Files (x86)\Windows Kits\include.0.18362.0
\shared -IC:\Program Files (x86)\Windows Kits\include.0.18362.0\um -IC:\Program Files (x86)\Windows Kits\include.0.18362.0\winrt -IC:\Program Files (x86)\Windows Kits\include.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 Studio19\Community\VC\Tools\MSVC.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 Studio19\Community\VC\Tools\MSVC.28.29333\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio19\Co
mmunity\VC\Tools\MSVC.28.29333\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK.8\include\um -IC:\Program Files (x86)\Windows Kits\include.0.18362.0\ucrt -IC:\Program Files (x86)\Windows Kits\include.0.18362.0
\shared -IC:\Program Files (x86)\Windows Kits\include.0.18362.0\um -IC:\Program Files (x86)\Windows Kits\include.0.18362.0\winrt -IC:\Program Files (x86)\Windows Kits\include.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.
Whosebug 不会让我 post 因为它说我的大部分 post 是代码,但它只是错误日志所以我 posting 这个所以它会让我post。我想我已经提供了足够的信息
Cannot open include file: 'openssl/aes.h': No such file or directory
您需要 OpenSSL 开发文件来构建该库。这个答案似乎相关:How to use OpenSSL with Visual Studio
做不到这一点,看起来 scrypt
在 Windows 上有 Python 3.8 的轮子(预编译二进制包):https://pypi.org/project/scrypt/#files
因此,如果您可以切换到 Python 3.8,那也可能会解决您的问题。