Search code examples
jupyter-lab

Win10 Jupyter Lab Extension Installation Throws Permission Error [Errno 13]


Background

I have recently installed Jupyter Lab through conda-forge on my Windows 10 machine.

Problem

Whenever I try to install any extensions from within Jupyter Lab, I get this error:

Error: ERROR: Could not open requirements file: [Errno 13] Permission denied: 'C:\\Users\\MY_USER_NAME\\AppData\\Local\\Temp\\tmpm9gfttp2'

Screenshot of problem

Question

How can I resolve the problem? I've tried running Anaconda Prompt with admin privileges but that did not change anything. Admin rights should not be required anyway.


Solution

    1. Shutdown JupyterLab
    2. Simply install the required package outside of JupyterLab using pip, like so (this will force Python to use the pip that is local to the current environment).
    python -m pip install <package-name>
    
    1. The extension will be available for use next time JupyterLab is launched.