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 .
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.
Hello,
I ran into the following error when attempting to pip install pycortex on Linux:
pip3 install --user git+https://github.com/gallantlab/pycortex
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 toself.install_data
to beself.install_base
. I changed this back toself.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 .