MIC-DKFZ / nnUNet

Apache License 2.0
5.9k stars 1.76k forks source link

pip install -e . fails to install: results in UNKNOWN-0.0.0 #1832

Closed mike-barrow closed 9 months ago

mike-barrow commented 11 months ago

pulling the repository, navigating to nnUNet and running pip install -e . does not install nnUNet v2 in my virtual environment. Instead I see:

pip install -e .
Obtaining file:///home/king/workspace/Sergios-PET-Lesion-Seg-venvii/workspace/nnUNet
  Installing build dependencies ... done
  Checking if build backend supports build_editable ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Installing collected packages: UNKNOWN
  Running setup.py develop for UNKNOWN
Successfully installed UNKNOWN-0.0.0

Issue occurs on a virtual environment on Ubuntu 20.04 LTS, python version 3.10.12

Nils-ChristianIseke commented 11 months ago

I had the same issue once. It was resolved by running 'pip install --upgrade pip setuptools, before installing nnunet

mrokuss commented 11 months ago

Hey @mike-barrow

Could updating setuptools resolve your issue as in the case of @Nils-ChristianIseke ?

mike-barrow commented 9 months ago

Hi sorry for the late response. No, pip install -U setuptools does not seem to work as it did before

mike-barrow commented 9 months ago

Hi there, my mistake. I did not update setuptools correctly. I needed to specify pip3:

pip3 install --upgrade setuptools pip
python -m pip install .

after doing this, the install worked.

MikasaLee commented 8 months ago

Hi, i also have this problem,pip install -U setuptools and python -m pip install . does not seem to work