ModuleNotFoundError:在Django Metamask安装中没有名为“ ethereum”的模块

时间:2019-07-31 18:48:18

标签: django blockchain ethereum metamask

现在,我正在尝试django和metamask连接的工作。但是当我尝试运行服务器时,却遇到了

...
 urlconf_module = import_module(urlconf_module)
  File "C:\Users\Emma\AppData\Local\Programs\Python\Python37-32\lib\importlib\__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "C:\Users\Emma\Desktop\web3start\web3auth\urls.py", line 3, in <module>
    from web3auth import views
  File "C:\Users\Emma\Desktop\web3start\web3auth\views.py", line 10, in <module>
    from web3auth.forms import LoginForm, SignupForm
  File "C:\Users\Emma\Desktop\web3start\web3auth\forms.py", line 8, in <module>
    from .utils import validate_eth_address
  File "C:\Users\Emma\Desktop\web3start\web3auth\utils.py", line 2, in <module>
    import ethereum
ModuleNotFoundError: No module named 'ethereum'
...

所以我尝试了诸如 pip install ethereum,pip install -r requirements.txt,pip install'rlp == 0.6.0',但仍然出现错误。有人可以帮我吗?

0 个答案:

没有答案