简体   繁体   中英

Jupyter notebook - can't install

pip install jupyterlab --user   

ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Users/xxx/Library/Python/2.7'
Check the permissions.    

Doesn't work.

So I tried

pip install --user jupyter

Same error:

ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Users/xxx/Library/Python/2.7'

And so I tried

pip install jupyterlab

Same error!!

Any idea what might be causing this? It's infuriating: .( help appreciated.

Try with:

sudo pip install jupyterlab

Why don't you try installing JupyterLab using miniconda ?

Install miniconda

  • wget https://repo.anaconda.com/miniconda/Miniconda3-4.5.4-MacOSX-x86_64.pkg
  • Install the above-downloaded pkg to the default location (/miniconda3)
  • Add miniconda to path export PATH="/miniconda3/bin:/miniconda3/share/jupyter/lab/staging/node_modules/.bin:$PATH"

Create Conda Env and Install JupyterLab

  • source ~/.bash_profile
  • conda create -n jlab python=3.6.8 jupyterlab
  • conda activate jlab
  • conda install -c conda-forge jupyterlab=2

Start the server

  • jupyter lab

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM