Jupyter notebook - can't install - python

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

Related

Unable to install python twint package under MacOS Catalina

I want to install pip3 install twint but I get the error:
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Library/Python/3.8'
Consider using the `--user` option or check the permissions.
what command do i need to type to install it under my user option?
would it be python -m pip3 install twint?
as suggested by pip, use --user: python3 -m pip install --user twint
it will install your package in your home (https://pip.pypa.io/en/stable/user_guide/#user-installs)
as a better alternative, you can look into virtual environments
Try installing this using the Anaconda Navigator cmd. The installation did not work in Jupyter Notebook, but it did work in Anaconda Navigator cmd.

I cannot install module with pip

After installing python 3.8, I cannot install module with pip:
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/.local/lib/python3.8/site-packages/enum34-1.1.10.dist-info'
Check the permissions.
Try to use sudo in the beginning of the command if you are in linux. Maybe you are bot using the system as a root
Add --user at the end
pip3 install package_name --user
I would try to use anaconda with the following command in the terminal:
conda install -c anaconda pip
If you don't have anaconda:
pip install conda

Error while Executing jupyter notebook: [Errno 2] No such file or directory

I have installed anaconda, when I type jupyter notebook, I have got below error.
Error executing Jupyter command 'notebook': [Errno 2] No such file or directory
after a lot of google search found below command
(it is for Python 3)
pip3 install --upgrade --force-reinstall --no-cache-dir jupyter
above command will reinstall everything from PyPi. .even after executing this I have faced below error
Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/lib/python3.5/dist-packages/attrs-19.1.0.dist-info'
can you help me solving this problem?
I tried many things but simple "sudo" command prefixing to the original command helped me to fixed this issue.
sudo pip3 install --upgrade --force-reinstall --no-cache-dir jupyter
IPython is causing this issue. So uninstalling it would be a better option.
sudo apt-get remove ipython
sudo apt-get purge ipython
sudo apt-get autoremove
pip install jupyter
Now execute jupyter notebook command...

Pip not installing packages without --user on my own laptop

Recently I messed up my steady environment by installing multiple versions of python.
What I'm trying to do: install a particular package using pip
pip cannot install any package without the --user tag
Could not install packages due to an EnvironmentError: [Errno 13 Permission denied: '/Library/Python/2.7/site-packages/PIL
Here's More information:
which pip
/usr/local/bin/pip
which python
/usr/bin/python
What should I do?
Use sudo or su to install packages system-wide.

Python-Error installing python package (libmagic)

When I try to install libmagic using pip install python-libmagic, I get the following error:
Could not install packages due to an EnvironmentError: [Error 13] Permission denied: 'c:\users\*****\anaconda\Lib\site-pakages\_cffi_backend.cp36-win_amd64.pyd'
Consider using the --user option or check the permissions.
What should I do to rectify this error?
You are trying to install the package to a system folder which you don't have permissions to write to.
You have two options(use only one of them):
1-setup a virtual env to install the package (recommended):
python3 -m venv env
source ./env/bin/activate
python -m pip install python-libmagic[samples]
2. install the package to the user folder:
python -m pip install --user python-libmagic[samples]

Categories

Resources