我试图创建一个 python 程序来将 ETH 转换为 BTC。我正在使用命令:
client.transfer_money("ETH Account ID ", to="BTC Account ID", amount="0.1", currency=:"ETH")
Run Code Online (Sandbox Code Playgroud)
我使用以下命令获取了帐户 ID:
client.get_accounts()
Run Code Online (Sandbox Code Playgroud)
并将 ID 复制粘贴到我的传输命令上。但是我收到此错误:
~/opt/anaconda3/envs/Coinbase/lib/python3.8/site-packages/coinbase/wallet/client.py in transfer_money(self, account_id, **params)
338 params['type'] = 'transfer'
339 response = self._post('v2', 'accounts', account_id, 'transactions', data=params)
--> 340 return self._make_api_object(response, Transaction)
341
342 def request_money(self, account_id, **params):
~/opt/anaconda3/envs/Coinbase/lib/python3.8/site-packages/coinbase/wallet/client.py in _make_api_object(self, response, model_type)
143 # All valid responses have a "data" key.
144 if data is None:
--> 145 raise build_api_error(response, blob)
146 # Warn the user about each …Run Code Online (Sandbox Code Playgroud) 我有一个安装了 Tensorflow 2.0.0-beta1 的 conda 环境。但是,每当我导入 tensorflow 并尝试启用急切执行时,我都会收到错误消息:
AttributeError: module 'tensorflow' has no attribute 'enable_eager_execution'
Run Code Online (Sandbox Code Playgroud)
我为此运行的唯一代码是:
import tensorflow as tf
print(tf.__version__)
tf.enable_eager_execution()
Run Code Online (Sandbox Code Playgroud)
这是 tensorflow 2.0 beta 模块的错误还是我的安装问题?