首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安全CLI -安装错误

安全CLI -安装错误
EN

Ethereum用户
提问于 2023-01-19 23:48:53
回答 1查看 73关注 0票数 0

我正在使用PIP 22.3.1和Python3.10

当运行"pip3 -U安全-cli“命令时,它将一直运行到下面的步骤并输出以下错误:

代码语言:javascript
复制
Building wheels for collected packages: pyethash

Building wheel for pyethash (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [12 lines of output]
      cl : Command line warning D9002 : ignoring unknown option '-std=gnu99'
      internal.c
      C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\stdio.h(1831): warning C4710: 'int sprintf_s(char *const ,const size_t,const char *const ,...)': function not inlined
      C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\stdio.h(1831): note: see declaration of 'sprintf_s'
      cl : Command line warning D9002 : ignoring unknown option '-std=gnu99'
      io.c
      C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\stdio.h(1831): warning C4710: 'int sprintf_s(char *const ,const size_t,const char *const ,...)': function not inlined
      C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\stdio.h(1831): note: see declaration of 'sprintf_s'
      cl : Command line warning D9002 : ignoring unknown option '-std=gnu99'
      io_win32.c
      c1: fatal error C1083: Cannot open source file: 'src/libethash/io_win32.c': No such file or directory
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pyethash
  Running setup.py clean for pyethash
Failed to build pyethash
Installing collected packages: pyethash, netaddr, mypy-extensions, lru-dict, cached-property, bitarray, websockets, urllib3, toolz, tabulate, six, pyrsistent, pygments, pycryptodome, protobuf, prompt-toolkit, packaging, multidict, idna, hexbytes, frozenlist, eth-typing, eth-hash, colorama, charset-normalizer, certifi, base58, attrs, async-timeout, yarl, requests, parsimonious, multiaddr, jsonschema, cytoolz, aiosignal, ipfshttpclient, eth-utils, eth-bloom, aiohttp, rlp, py-ecc, eth-keys, eth-abi, trie, eth-rlp, eth-keyfile, py-evm, eth-account, web3, safe-eth-py, safe-cli
  Running setup.py install for pyethash ... error
  error: subprocess-exited-with-error

  × Running setup.py install for pyethash did not run successfully.
  │ exit code: 1
  ╰─> [14 lines of output]
      C:\Python\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      cl : Command line warning D9002 : ignoring unknown option '-std=gnu99'
      internal.c
      C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\stdio.h(1831): warning C4710: 'int sprintf_s(char *const ,const size_t,const char *const ,...)': function not inlined
      C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\stdio.h(1831): note: see declaration of 'sprintf_s'
      cl : Command line warning D9002 : ignoring unknown option '-std=gnu99'
      io.c
      C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\stdio.h(1831): warning C4710: 'int sprintf_s(char *const ,const size_t,const char *const ,...)': function not inlined
      C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\stdio.h(1831): note: see declaration of 'sprintf_s'
      cl : Command line warning D9002 : ignoring unknown option '-std=gnu99'
      io_win32.c
      c1: fatal error C1083: Cannot open source file: 'src/libethash/io_win32.c': No such file or directory
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> pyethash

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
'''
EN

回答 1

Ethereum用户

发布于 2023-01-23 13:07:08

这个问题现在已经解决了。使用Linux安装时没有错误

票数 0
EN
页面原文内容由Ethereum提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://ethereum.stackexchange.com/questions/143328

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档