I everyone, I'm trying to install this powerful tool on Ubuntu 24.04.1 LTS, but when I run
git clone https://github.com/CompImg/LST-AI/ cd LST-AI pip install -e . cd ..
I obtain a list of error and ModuleNotFoundError: No module named 'distutils'.
So i put pip install setuptools in the lst virtual environment and the output was
(environment) giorgio@giorgio-XPS-15-9530:~$ pip3 install setuptools Collecting setuptools Using cached setuptools-74.1.2-py3-none-any.whl.metadata (6.7 kB) Using cached setuptools-74.1.2-py3-none-any.whl (1.3 MB) Installing collected packages: setuptools ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/path/to/new/lst/virtual/environment/lib/python3.12/site-packages/distutils-precedence.pth' Check the permissions.
I also run sudo pip install setuputools in virtual env, but again another error
`(environment) giorgio@giorgio-XPS-15-9530:~/lst_directory$ sudo pip3 install setuptools
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.
If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.
If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.
See /usr/share/doc/python3.12/README.venv for more information.
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.``
I've checked on stackoverflow, but I cannot resolve the issue. Sorry for the incomprehension but I'm not an engineer or computer scientist, I'm just a MD trying to do MRI analysis
I everyone, I'm trying to install this powerful tool on Ubuntu 24.04.1 LTS, but when I run
git clone https://github.com/CompImg/LST-AI/ cd LST-AI pip install -e . cd ..
I obtain a list of error and
ModuleNotFoundError: No module named 'distutils'
. So i putpip install setuptools
in the lst virtual environment and the output was(environment) giorgio@giorgio-XPS-15-9530:~$ pip3 install setuptools Collecting setuptools Using cached setuptools-74.1.2-py3-none-any.whl.metadata (6.7 kB) Using cached setuptools-74.1.2-py3-none-any.whl (1.3 MB) Installing collected packages: setuptools ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/path/to/new/lst/virtual/environment/lib/python3.12/site-packages/distutils-precedence.pth' Check the permissions.
I also run
sudo pip install setuputools
in virtual env, but again another error `(environment) giorgio@giorgio-XPS-15-9530:~/lst_directory$ sudo pip3 install setuptools error: externally-managed-environment× This environment is externally managed ╰─> To install Python packages system-wide, try apt install python3-xyz, where xyz is the package you are trying to install.
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages. hint: See PEP 668 for the detailed specification.`` I've checked on stackoverflow, but I cannot resolve the issue. Sorry for the incomprehension but I'm not an engineer or computer scientist, I'm just a MD trying to do MRI analysis