我正在尝试在 whonix 上安装比特币钱包 electrum 3.1.2。以前安装起来一直很简单,只需按照 electrum.org 上的说明操作即可。像这样
安装依赖项:
sudo apt-get install python3-setuptools python3-pyqt5 python3-pip
安装 Electrum:
sudo pip3 install https://download.electrum.org/3.1.2/Electrum-3.1.2.tar.gz
安装依赖项没有问题,但是当我尝试安装 Electrum 时收到此错误消息:
Exception:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2595, in _dep_map
return self.__dep_map
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2457, in __getattr__
raise AttributeError(attr)
AttributeError: _DistInfoDistribution__dep_map
在处理上述异常的过程中,又发生了另一个异常:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 290, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/usr/lib/python3/dist-packages/pip/req.py", line 1266, in prepare_files
req_to_install.extras):
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2401, in requires
dm = self._dep_map
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2597, in _dep_map
self.__dep_map = self._compute_dependencies()
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2630, in _compute_dependencies
common = frozenset(reqs_for_extra(None))
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2627, in reqs_for_extra
if req.marker_fn(override={'extra':extra}):
File "/usr/lib/python3/dist-packages/_markerlib/markers.py", line 113, in marker_fn
return eval(compiled_marker, environment)
File "<environment marker>", line 1, in <module>
NameError: name 'platform_system' is not defined
Storing debug log for failure in /root/.pip/pip.log
这是什么意思?我该怎么做才能让它发挥作用?
谢谢你!
答案1
事实并非如此electrum
,但我遇到了同样的问题,并通过采用稍微不同的方法解决了它:
https://www.linuxbabe.com/ubuntu/install-bitcoin-core-wallet-ubuntu-16-04-16-10