python - 无法让 Python 3.8.3 识别比特币模块
问题描述
Traceback (most recent call last):
File "/Users/nhkjdk/Documents/Tutorial.py", line 1, in <module>
from bitcoin import *
ModuleNotFoundError: No module named 'bitcoin'
>>>
我有 Python 3.8.3——我已经从https://github.com/vbuterin/pybitcointools.git安装了 pip install cryptos
无法从加密货币导入...
不断收到此错误:
>>> 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'
任何人有任何想法???谢谢。
解决方案
在终端尝试这条线。这将安装缺少的包“请求”。
python3 -m pip install requests --user
推荐阅读
- google-apps-script - 如何修复谷歌脚本中的“getNextDataCell下一个跳过一个单元格”错误
- amazon-web-services - AWS CloudFormation:AWS::Events::Rule - InputTemplate
- json - CSV 数据(不是文件)到 json
- ios - iOS 13 Public Beta 2 - Combine.Future "dyld: Symbol not found"
- web-component - children 和 parentNode 命令不适用于 Web 组件
- mysql - 如何选择从伦敦向所有项目出售 P1 件的供应商?
- python - Firebase Firestore:获取生成的文档 ID(Python)
- java - 使用 flyway 命令行版本索引
- android - 动画片段上滑和下滑
- python-3.x - 如何替换以下代码:predictions_ARIMA_log = pd.Series(indexedDataset_logScale['MH'].ix[0], index = indexedDataset_logScale.index)