Skip to content
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 error #505

Open
davidmwatson opened this issue Nov 9, 2023 · 1 comment
Open

Installation error #505

davidmwatson opened this issue Nov 9, 2023 · 1 comment

Comments

@davidmwatson
Copy link

Hello,

I ran into the following error when attempting to pip install pycortex on Linux:

pip3 install --user git+https://github.com/gallantlab/pycortex

  error: could not create '/usr/share/pycortex': Permission denied
  ----------------------------------------
  ERROR: Failed building wheel for pycortex
Failed to build pycortex
ERROR: Could not build wheels for pycortex which use PEP 517 and cannot be installed directly

This seems to be a permissions error - I did specify the --user flag to pip, but the setup seems to be ignoring it. Looking at the history of setup.py, it looks like commit 156c66f changed a reference to self.install_data to be self.install_base. I changed this back to self.install_data, and the installation seems to have run fine for me now, so maybe this has something to do with it? This might also be related to issue #495 .

@kroq-gar78
Copy link
Contributor

kroq-gar78 commented Sep 8, 2024

I think I've only run into this issue when installing outside of a virtual environment or conda environment. I can confirm changing self.install_data to self.install_base does fix it though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants