unibe-cns / NEAT

NEAT (NEural Analysis Toolkit)
Other
12 stars 15 forks source link

Installation hangs on MacOS #127

Closed thorstenhater closed 3 years ago

thorstenhater commented 3 years ago

Trying to install the development version on a MacBook w/ BigSur (11.2.3) results in a hanging process. Example progress

$> pip3 install -e .
Obtaining [...]
Requirement already satisfied: numpy>=1.19.2 in /usr/local/lib/python3.9/site-packages (from neatdend==0.9.1) (1.20.1)
[...]
Requirement already satisfied: mpmath>=0.19 in /usr/local/lib/python3.9/site-packages (from sympy>=1.7.1->neatdend==0.9.1) (1.1.0)
Installing collected packages: neatdend
  Running setup.py develop for neatdend

at this point XQuartz starts, but no progress is made in a reasonable timeframe (~30min). Requirements and NEAT are installed in a virtual env, including neuron 7.8.2. Python 3.9.4 is used.

WillemWybo commented 3 years ago

I'm unable to reproduce the error, I'm running into an unrelated error with installing the scipy version in a conda environment with python3.9.

ERROR: Could not find a version that satisfies the requirement scipy~=1.4.1 (from neatdend) (from versions: 0.8.0, 0.9.0, 0.10.0, 0.10.1, 0.11.0, 0.12.0, 0.12.1, 0.13.0, 0.13.1, 0.13.2, 0.13.3, 0.14.0, 0.14.1, 0.15.0, 0.15.1, 0.16.0, 0.16.1, 0.17.0, 0.17.1, 0.18.0, 0.18.1, 0.19.0, 0.19.1, 1.0.0b1, 1.0.0rc1, 1.0.0rc2, 1.0.0, 1.0.1, 1.1.0rc1, 1.1.0, 1.2.0rc1, 1.2.0rc2, 1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.3.0rc1, 1.3.0rc2, 1.3.0, 1.3.1, 1.3.2, 1.3.3, 1.4.0rc1, 1.4.0rc2, 1.4.0, 1.4.1, 1.5.0rc1, 1.5.0rc2, 1.5.0, 1.5.1, 1.5.2, 1.5.3, 1.5.4, 1.6.0rc1, 1.6.0rc2, 1.6.0, 1.6.1, 1.6.2, 1.6.3)
ERROR: No matching distribution found for scipy~=1.4.1

The installation works for me in a conda environment with python3.6.

thorstenhater commented 3 years ago

I have to admit that I bumped the requirements since I ran into the same issue.

WillemWybo commented 3 years ago

I update the requirements (linked PR), and I'm able to successfully install the neat with pip install -e . in a conda virtual environment with python 3.9, on my macbook. Perhaps an issue with not having the correct c++ compiler (gnu++11)? Or what version of Xquartz do you have?