Closed Initiated0 closed 5 months ago
Have you installed MacOs's command line tools on your machine? It looks like something is off with your installation, see the last errors
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
@mvdoc Thank you so much for quickly replying. I didn't realize that I needed Command Line Tools for Mac Os. I followed the following tutorial (Homebrew installation) https://www.freecodecamp.org/news/install-xcode-command-line-tools/
And was able to install pycortex-1.2.7
Again, thanks for your support, and good luck.
After following this:
First, install some required dependencies (if not already installed)
pip install -U setuptools wheel numpy cython
Install the latest release of pycortex from pip
pip install -U pycortex
here is the entire error:
(torch) nayeemmohammad@Nayeems-MacBook-Pro ~ % pip install -U pycortex
Collecting pycortex Using cached pycortex-1.2.7.tar.gz (37.2 MB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Collecting future (from pycortex) Using cached future-1.0.0-py3-none-any.whl.metadata (4.0 kB) Requirement already satisfied: numpy in ./anaconda3/envs/torch/lib/python3.9/site-packages (from pycortex) (1.26.4) Requirement already satisfied: scipy in ./anaconda3/envs/torch/lib/python3.9/site-packages (from pycortex) (1.12.0) Requirement already satisfied: tornado>=4.3 in ./anaconda3/envs/torch/lib/python3.9/site-packages (from pycortex) (6.3.3) Collecting shapely (from pycortex) Using cached shapely-2.0.3-cp39-cp39-macosx_11_0_arm64.whl.metadata (7.0 kB) Requirement already satisfied: lxml in ./anaconda3/envs/torch/lib/python3.9/site-packages (from pycortex) (5.1.0) Collecting html5lib (from pycortex) Using cached html5lib-1.1-py2.py3-none-any.whl.metadata (16 kB) Collecting h5py (from pycortex) Using cached h5py-3.10.0-cp39-cp39-macosx_11_0_arm64.whl.metadata (2.5 kB) Collecting numexpr (from pycortex) Using cached numexpr-2.10.0-cp39-cp39-macosx_11_0_arm64.whl.metadata (7.9 kB) Requirement already satisfied: cython<3.0 in ./anaconda3/envs/torch/lib/python3.9/site-packages (from pycortex) (0.29.37) Requirement already satisfied: matplotlib in ./anaconda3/envs/torch/lib/python3.9/site-packages (from pycortex) (3.5.3) Requirement already satisfied: pillow in ./anaconda3/envs/torch/lib/python3.9/site-packages (from pycortex) (10.2.0) Requirement already satisfied: nibabel>=2.1 in ./anaconda3/envs/torch/lib/python3.9/site-packages (from pycortex) (5.2.1) Requirement already satisfied: networkx>=2.1 in ./anaconda3/envs/torch/lib/python3.9/site-packages (from pycortex) (3.1) Collecting imageio (from pycortex) Using cached imageio-2.34.0-py3-none-any.whl.metadata (4.9 kB) Requirement already satisfied: wget in ./anaconda3/envs/torch/lib/python3.9/site-packages (from pycortex) (3.2) Requirement already satisfied: packaging>=17 in ./anaconda3/envs/torch/lib/python3.9/site-packages (from nibabel>=2.1->pycortex) (23.2) Requirement already satisfied: six>=1.9 in ./anaconda3/envs/torch/lib/python3.9/site-packages (from html5lib->pycortex) (1.16.0) Requirement already satisfied: webencodings in ./anaconda3/envs/torch/lib/python3.9/site-packages (from html5lib->pycortex) (0.5.1) Requirement already satisfied: cycler>=0.10 in ./anaconda3/envs/torch/lib/python3.9/site-packages (from matplotlib->pycortex) (0.11.0) Requirement already satisfied: fonttools>=4.22.0 in ./anaconda3/envs/torch/lib/python3.9/site-packages (from matplotlib->pycortex) (4.25.0) Requirement already satisfied: kiwisolver>=1.0.1 in ./anaconda3/envs/torch/lib/python3.9/site-packages (from matplotlib->pycortex) (1.4.4) Requirement already satisfied: pyparsing>=2.2.1 in ./anaconda3/envs/torch/lib/python3.9/site-packages (from matplotlib->pycortex) (3.0.9) Requirement already satisfied: python-dateutil>=2.7 in ./anaconda3/envs/torch/lib/python3.9/site-packages (from matplotlib->pycortex) (2.8.2) Using cached future-1.0.0-py3-none-any.whl (491 kB) Using cached h5py-3.10.0-cp39-cp39-macosx_11_0_arm64.whl (2.7 MB) Using cached html5lib-1.1-py2.py3-none-any.whl (112 kB) Using cached imageio-2.34.0-py3-none-any.whl (313 kB) Using cached numexpr-2.10.0-cp39-cp39-macosx_11_0_arm64.whl (92 kB) Using cached shapely-2.0.3-cp39-cp39-macosx_11_0_arm64.whl (1.3 MB) Building wheels for collected packages: pycortex Building wheel for pycortex (pyproject.toml) ... error error: subprocess-exited-with-error
× Building wheel for pycortex (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [551 lines of output]