无法让Python 3.8.3识别比特币模块

2024-05-03 23:01:09 发布

您现在位置:Python中文网/ 问答频道 /正文

Traceback (most recent call last):
  File "/Users/nhkjdk/Documents/Tutorial.py", line 1, in <module>
    from bitcoin import *
ModuleNotFoundError: No module named 'bitcoin'
>>>

我有Python3.8.3——我已经从https://github.com/vbuterin/pybitcointools.git安装了pip安装加密

无法从加密导入

继续获取此错误:

>>> from cryptos import *
Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    from cryptos import *
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/cryptos/__init__.py", line 10, in <module>
    from .coins import *
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/cryptos/coins/__init__.py", line 1, in <module>
    from .bitcoin import *
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/cryptos/coins/bitcoin.py", line 1, in <module>
    from ..explorers import blockchain
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/cryptos/explorers/__init__.py", line 1, in <module>
    from . import base_insight, bitpay, blockdozer, dash_siampm, sochain
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/cryptos/explorers/base_insight.py", line 2, in <module>
    import requests
ModuleNotFoundError: No module named 'requests'

有人知道吗??? 谢谢


Tags: infrompyimportlibpackageslinelibrary