Error upgrading the development version of mne

Hello all,

  • MNE version: 1.3.1
  • operating system: macOS Ventura 13.3

I am trying to upgrade mne to the development version in the Terminal, but the upgrade failed.

pip install -U --no-deps https://github.com/mne-tools/mne-python/archive/main.zip
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [30 lines of output]
      /Users/yeren/opt/anaconda3/lib/python3.9/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.





LookupError: setuptools-scm was unable to detect version for /private/var/folders/6f/8rvc06hd4n34k3y75dny1y4m0000gn/T/pip-req-build-kmi5jt9f.
      
      Make sure you're either building from a fully intact git repository or PyPI tarballs. Most other sources (such as GitHub's tarballs, a git checkout without the .git folder) don't contain the necessary metadata and will not work.
      
      For example, if you're using pip, instead of https://github.com/user/proj/archive/master.zip use git+https://github.com/user/proj.git#egg=proj
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

What should I do with this error? :confused:

this part of the output suggests that you should do

pip install -U --no-deps git+https://github.com/mne-tools/mne-python.git#egg=proj

did that not work?

1 Like

Thanks Dan!

I tried pip install -U --no-deps git+https://github.com/mne-tools/mne-python.git#egg=mne and it finally worked.

Successfully installed mne-1.4.0.dev…