如何在服务器上使用 Python3 安装和 运行 电子钱包?

How to install and run electrum wallet with Python3 on server?

我是第一次实现比特币钱包,所以对这方面的了解不多

但是通过关注 electrum 官方 documentation ,我尝试在我的 macbook 上安装 electrum 并且运行良好,现在我想在我的服务器 运行 centOS 上安装它。但是安装命令 python3 run_electrum 抛出这个错误

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.

Aborted (core dumped)

这里有什么我遗漏的吗,我正在使用 python 3.6.4

好的,而不是 运行我尝试使用此命令安装 electrum,而不是直接使用 electrum

python3 -m pip install Electrum-3.3.8.tar.gz

然后

sudo ln -s ~/.local/bin/electrum /usr/local/bin/electrum

现在我可以在我的服务器上使用electrum命令,我现在也成功创建了钱包

另请记住,您可以从您选择的任何文件夹中 运行 electrum,遵循 electrum 的替代说明:

tar -xvf Electrum-3.3.8.tar.gz python3 Electrum-3.3.8/run_electrum

也可以使用官网的AppImage。将其下载到您服务器的某个位置并且 运行 无需安装:

$ chmod +x electrum-3.3.8-x86_64.AppImage  # make it executable at first
$ ./electrum-3.3.8-x86_64.AppImage daemon start