-2

Pythonは初めてですが、コーディングは初めてで、モジュールのインストールに慣れています。py -m pip install ccxtを使用して ccxt をインストールすると、エラーがスローされ続けることを除いて、かなり遠くまで到達するようです。

ERROR: Command errored out with exit status 1:
 command: 'C:\Users\samib\AppData\Local\Programs\Python\Python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\samib\\AppData\\Local\\Temp\\pip-install-7wa5a9m4\\pycares_61a5dda285624907b00263dfe14e0ed6\\setup.py'"'"'; __file__='"'"'C:\\Users\\samib\\AppData\\Local\\Temp\\pip-install-7wa5a9m4\\pycares_61a5dda285624907b00263dfe14e0ed6\\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\samib\AppData\Local\Temp\pip-record-yolmpi02\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\samib\AppData\Local\Programs\Python\Python39\Include\pycares'
     cwd: C:\Users\samib\AppData\Local\Temp\pip-install-7wa5a9m4\pycares_61a5dda285624907b00263dfe14e0ed6\
Complete output (17 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\pycares
copying src\pycares\errno.py -> build\lib.win-amd64-3.9\pycares
copying src\pycares\utils.py -> build\lib.win-amd64-3.9\pycares
copying src\pycares\_version.py -> build\lib.win-amd64-3.9\pycares
copying src\pycares\__init__.py -> build\lib.win-amd64-3.9\pycares
copying src\pycares\__main__.py -> build\lib.win-amd64-3.9\pycares
running build_ext
generating cffi module 'build\\temp.win-amd64-3.9\\Release\\_cares.c'
creating build\temp.win-amd64-3.9
creating build\temp.win-amd64-3.9\Release
building '_cares' extension
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\samib\AppData\Local\Programs\Python\Python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\samib\\AppData\\Local\\Temp\\pip-install-7wa5a9m4\\pycares_61a5dda285624907b00263dfe14e0ed6\\setup.py'"'"'; __file__='"'"'C:\\Users\\samib\\AppData\\Local\\Temp\\pip-install-7wa5a9m4\\pycares_61a5dda285624907b00263dfe14e0ed6\\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\samib\AppData\Local\Temp\pip-record-yolmpi02\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\samib\AppData\Local\Programs\Python\Python39\Include\pycares' Check the logs for full command output.

機械を持っていて、これを解読するのを手伝ってくれる人はいますか?

IDLEでもこの問題が発生します。私のコードはimport ccxt, print(ccxt.exchanges)を読み取り、これはすべて戻ってきます:

Traceback (most recent call last):
  File "C:/Users/samib/Documents/arbbot.py", line 1, in <module>
    from ccxt import ccxt
  File "C:/Users/samib/Documents\ccxt\__init__.py", line 29, in <module>
    from ccxt.base.exchange import Exchange                     # noqa: F401
  File "C:/Users/samib/Documents\ccxt\base\__init__.py", line 24, in <module>
    from ccxt.base import exchange
  File "C:/Users/samib/Documents\ccxt\base\exchange.py", line 32, in <module>
    from cryptography.hazmat import backends
ModuleNotFoundError: No module named 'cryptography'
4

2 に答える 2

0

あなたのエラーメッセージが言うようModuleNotFoundError: No module named 'cryptography'に、私はそのモジュールをインストールしようとします:

pip install cryptography
于 2020-12-26T18:16:00.703 に答える