# Error upgrading the development version of mne

**URL:** <https://mne.discourse.group/t/error-upgrading-the-development-version-of-mne/6631>\
**Category:** Support & Discussions\
**Created:** [March 31, 2023, 2:35am UTC](https://mne.discourse.group/t/error-upgrading-the-development-version-of-mne/6631 "2023-03-31T02:35:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yeren](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/yeren/32/2403_2.png) [@yeren](https://mne.discourse.group/u/yeren)\
**Post date:** [March 31, 2023, 2:35am UTC](https://mne.discourse.group/t/error-upgrading-the-development-version-of-mne/6631/1 "2023-03-31T02:35:58Z")

</div>

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.

```python
pip install -U --no-deps https://github.com/mne-tools/mne-python/archive/main.zip

```

```python
  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.

```

 ![截屏2023-03-31 10.04.30](https://global.discourse-cdn.com/free1/uploads/mne/original/2X/6/6147c553a5079c2d750f44f89ecfc23f3155d026.png)

What should I do with this error? 😕

---

<div class="post-metadata">

**Author:** ![drammock](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/drammock/32/4_2.png) [@drammock](https://mne.discourse.group/u/drammock)\
**Post date:** [March 31, 2023, 11:08pm UTC](https://mne.discourse.group/t/error-upgrading-the-development-version-of-mne/6631/2 "2023-03-31T23:08:27Z")

</div>

> [@yeren](#):
>
> `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`

this part of the output suggests that you should do

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

```

did that not work?

---

<div class="post-metadata">

**Author:** ![yeren](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/yeren/32/2403_2.png) [@yeren](https://mne.discourse.group/u/yeren)\
**Post date:** [April 2, 2023, 12:51pm UTC](https://mne.discourse.group/t/error-upgrading-the-development-version-of-mne/6631/3 "2023-04-02T12:51:17Z")

</div>

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…
