Open vaiana opened 6 years ago
Hmm. @vaiana, what's on your PATH? Any other python installations there? What operating system?
The pip
and python
I am using are those in my miniconda environment named keras
. I am trying to install PHAT into my conda environment instead of system wide.
(keras) $: echo $PATH
/home/michael/miniconda3/envs/keras/bin:/home/mvaiana/anaconda3/bin:/
home/michael/miniconda3/bin:/usr/local/sbin:/usr/local/bin:/
usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin`
The path contains miniconda3/env/keras/bin
where pip
and python
live
(keras) $: which pip
/home/michael/miniconda3/envs/keras/bin/pip
(keras) $: which python
/home/michael/miniconda3/envs/keras/bin/python
The OS was originally Ubuntu 16.04 but I just upgraded to Ubuntu 17.10 and confirmed I get the same error.
OK, this is strange. For me it works on 16.04, but it does create ~/.local/lib/python3.6/site-packages, even though it doesn't install anything there. Grepping for '.local' in the repo doesn't reveal anything, so I'm not sure where that's coming from. As a workaround, maybe make sure you have at least ~/.local/lib existing and writable by you.
I am having the same error on windows and python 3.7. Does the setup.py causes this error?
ERROR: Command "'C:\Users\rabih\AppData\Local\Programs\Python\Python37\python.exe' -u -c 'import setuptools, tokenize;file='"'"'C:\Users\rabih\AppData\Local\Temp\pip-install-4ellxlg6\phat\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\rabih\AppData\Local\Temp\pip-record-qq_ufgsd\install-record.txt' --single-version-externally-managed --compile" failed with error code 1 in C:\Users\rabih\AppData\Local\Temp\pip-install-4ellxlg6\phat
I'm trying to install the python PHAT bindings inside of an Anaconda environment and it fails with a permission denied error.