Open matthew-hsr opened 6 years ago
If you're installing it in an environment, you probably don't want the --user
flag. That flag means 'install this in the home directory of the current user'.
The error message is kind of confusing in this case. I think it says that on any permission error, regardless of what options you used. Trying to write 'helpful' error messages is really hard, because there are so many different ways to use software.
I am trying to run jupyter notebook in a virtualenv on a cluster computing platform running Linux, but I am unable to install a ipykernel for jupyter notebook. Original stack overflow question is here.
I tried to follow these instructions.
pip install jupyter
andpip install ipykernel
worked properly, saying requirement already satisfied. Butpython -m ipykernel install --user --name testenv --display-name "MyEnv"
does not work, returningwhich really confuses me, as I thought the
--user
tag should make it install at my local directory already. I also tried specifying the path of my virtualenv by using--prefix
, but it is still saying I have no permission to access the system'skernel.json
.I also tried
ipython kernel install --name "xx" --user
and specifying path with--prefix
but it returns the same error.So my question is:
How come the installation still tries to access the tmp folder, even though I specified
--tags
and--prefix
? Did the tags--user
or--prefix
not work for some reason? Did this error arise because even though the ipython kernel was installed locally, thekernel.json
at the system directory still needs to be changed?How can I create a kernel truly locally? I suppose after that I can create my own
kernel.json
as in here or here to direct the jupyter notebook to use my own kernel?Any help is highly appreciated! Thanks a lot in advance!