You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

PySurfer/MNE安装报错求助:ImportError: No module named retrying(Ubuntu16.04)

Fixing "ImportError: No module named retrying" in MNE (Ubuntu 16.04 LTS)

Hey there, that error is super straightforward—it just means your Python environment is missing the retrying module that MNE depends on. Let's get this sorted out quickly:

  • First, match your Python version to the install command
    Ubuntu 16.04 comes with both Python 2 and Python 3 pre-installed. Make sure you're using the right pip for the environment where you installed MNE:

    • If you're using Python 2 (the system default), run:
      sudo pip install retrying
    • If you're using Python 3, use:
      sudo pip3 install retrying
  • Using a virtual environment? Activate it first
    If you installed MNE inside a virtual environment (which is a good practice!), don't use sudo. Instead:

    1. Activate your environment (replace your_venv with your actual environment name):
      source your_venv/bin/activate
    2. Install the module:
      pip install retrying
  • Permission issues? Install for your user only
    If you get a permission error with the above commands, skip sudo and install the module just for your account:
    pip install --user retrying (or pip3 install --user retrying for Python 3)

Once you've installed retrying, try importing MNE again—it should work without that error now.

内容的提问来源于stack exchange,提问作者Hugo Loyola

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.20 10:04:21