Python Forum

Full Version: Exception while intalling jupyter notebook
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
my question here

I am trying to install jupyter notebook systems in my linux machine, I checked their website which states

pip3 install jupyter

could download the jupyter for me. So I tried but it throws Exception. Need help . I have mentioned only the Exception part of it below.
pip3 install jupyter

Exception:
Traceback (most recent call last):
  File "/home/mohn/.local/lib/python3.5/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/home/mohn/.local/lib/python3.5/site-packages/pip/commands/install.py", line 342, in run
    prefix=options.prefix_path,
  File "/home/mohn/.local/lib/python3.5/site-packages/pip/req/req_set.py", line 784, in install
    **kwargs
  File "/home/mohn/.local/lib/python3.5/site-packages/pip/req/req_install.py", line 851, in install
    self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
  File "/home/mohn/.local/lib/python3.5/site-packages/pip/req/req_install.py", line 1064, in move_wheel_files
    isolated=self.isolated,
  File "/home/mohn/.local/lib/python3.5/site-packages/pip/wheel.py", line 345, in move_wheel_files
    clobber(source, lib_dir, True)
  File "/home/mohn/.local/lib/python3.5/site-packages/pip/wheel.py", line 316, in clobber
    ensure_dir(destdir)
  File "/home/mohn/.local/lib/python3.5/site-packages/pip/utils/__init__.py", line 83, in ensure_dir
    os.makedirs(path)
  File "/usr/lib/python3.5/os.py", line 241, in makedirs
    mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.5/dist-packages/pygments'
Run the install process as administrator
Or (as you are already using user installed python) use --user parameter to enforce local installation.
Output:
pip3 install --user jupyter
(May-26-2017, 07:29 AM)wavic Wrote: [ -> ]Run the install process as administrator

yes it worked.. very helpful..

(May-26-2017, 07:29 AM)wavic Wrote: [ -> ]Run the install process as administrator
I used sudo command and installation worked fine. This command is informative, Thanks