-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation trouble: ModuleNotFoundError: No module named 'distutils.msvccompiler' #552
Comments
same error |
I can replicate the same error when installing pycortex from pypi. While we investigate that problem, I just pushed a commit that should fix the error when installing pycortex from the github repository. The following worked for me: git clone https://github.com/gallantlab/pycortex.git
cd pycortex
conda create --name pycortex python=3.11
conda activate pycortex
pip install . Let us know if this works for you too. |
Version 1.2.9 of pycortex (just released on pypi) should also fix this issue. You can try with the following conda create --name pycortexpip python=3.11
conda activate pycortexpip
pip install pycortex |
With the fixes in #553, this issue should be resolved also in python 3.12. I'm closing this issue, but please let us know if you still encounter this error. |
Now I get this
|
That looks like a compiler error specific to mac and possibly unrelated to the distutils problem. However, I'm surprised because I can install pycortex on my mac m1 just fine. Can you try installing pycortex in a completely new conda environment? If that still fails, maybe uninstalling and reinstalling the mac command line tools may help. |
Dear pycortex team,
I'm trying to (re-)install
pycortex
on a M1 Macbook running Mac OS X 12.6 for 90 minutes now, but I just cannot pull it off. I stopped having fun.I keep getting the following error when compiling (cloned the repo and
pip install -e .
).I guess it's related to this issue
https://numpy.org/doc/stable/reference/distutils_status_migration.html#distutils-status-migration
I tried many different strategies now, using completely empty conda environments for python=3.8/3.9/3.10 (It's very hard to get anything below 3.8 these days). I also tried downgrading
setuptools
to 59 or 64, as suggested on the internet, as well as downgrading numpy to 1.22.If I do
pip install -U git+https://github.com/gallantlab/pycortex.git --no-build-isolation
I get
Do you have any insight here?
Cheers,
Gilles
The text was updated successfully, but these errors were encountered: