首页 > 解决方案 > 安装 python eth-wallet 时需要 Visual C++ 错误

问题描述

我正在尝试为 python 安装 eth-wallet。

所以我在终端中输入:

pip install eth-wallet

但:

ERROR: Command errored out with exit status 1:
       command: 'C:\Users\심현규\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe' -u -c p\\pip-install-kd6_tp3w\\pysha3_cba2ae34d4084611a948ad1aab052ef7\\setup.py'"'"'; __file__='"'"'C:\\Users\\심현규\\AppData\\Local\\Temkenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"
           cwd: C:\Users\심현규\AppData\Local\Temp\pip-install-kd6_tp3w\pysha3_cba2ae34d4084611a948ad1aab052ef7\
      Complete output (9 lines):
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-3.8
      copying sha3.py -> build\lib.win-amd64-3.8
      running build_ext
      building '_pysha3' extension
      error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downl
      ----------------------------------------
      ERROR: Failed building wheel for pysha3
      Running setup.py clean for pysha3
    Failed to build pysha3
    Installing collected packages: pysha3, mnemonic, ecdsa, eth-wallet
        Running setup.py install for pysha3 ... error
        ERROR: Command errored out with exit status 1:
        error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
    ERROR: Command errored out with exit status 1: 'C:\Users\심현규\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\심현규\\AppData\\Local\\Temp\\pip-install-kd6_tp3w\\pysha3_cba2ae34d4084611a948ad1aab052ef7\\setup.py'"'"'; __file__='"'"'C:\\Users\\심현규\\AppData\\Local\\Temp\\pip-install-kd6_tp3w\\pysha3_cba2ae34d4084611a948ad1aab052ef7\\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\심현규\AppData\Local\Temp\pip-record-qifj6vo6\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\심현규\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\Include\pysha3' Check the logs for full command output.

我怎样才能解决这个问题?

标签: pythonpip

解决方案


推荐阅读