It's not recommended to use pip with sudo. Either user the --user flag for
pip to install under your home directory, or create a virtualenv or conda
env to install packages into.

Thomas

On 15 December 2017 at 17:08, Mihkael Kolodny <mihkael.kolo...@gmail.com>
wrote:

> Hi All - Appreciate your assistance in advance. I am trying to install
> Jupyter and I am having issues installing dependencies. Can you please
> assist me with troubleshooting?
>
> I ran the command:
>
> sudo -H python -m pip install jupyter
>
>
> Output:
>
> Collecting jupyter
>
>   Using cached jupyter-1.0.0-py2.py3-none-any.whl
>
> Collecting jupyter-console (from jupyter)
>
>   Using cached jupyter_console-5.2.0-py2.py3-none-any.whl
>
> Requirement already satisfied: ipykernel in /Library/Python/2.7/site-packages
> (from jupyter)
>
> Collecting notebook (from jupyter)
>
>   Using cached notebook-5.2.2-py2.py3-none-any.whl
>
> Collecting nbconvert (from jupyter)
>
>   Using cached nbconvert-5.3.1-py2.py3-none-any.whl
>
> Collecting qtconsole (from jupyter)
>
>   Using cached qtconsole-4.3.1-py2.py3-none-any.whl
>
> Collecting ipywidgets (from jupyter)
>
>   Using cached ipywidgets-7.0.5-py2.py3-none-any.whl
>
> Requirement already satisfied: jupyter-client in 
> /Library/Python/2.7/site-packages
> (from jupyter-console->jupyter)
>
> Requirement already satisfied: ipython in /Library/Python/2.7/site-packages
> (from jupyter-console->jupyter)
>
> Requirement already satisfied: pygments in /Library/Python/2.7/site-packages
> (from jupyter-console->jupyter)
>
> Requirement already satisfied: prompt-toolkit<2.0.0,>=1.0.0 in
> /Library/Python/2.7/site-packages (from jupyter-console->jupyter)
>
> Requirement already satisfied: tornado>=4.0 in 
> /Library/Python/2.7/site-packages
> (from ipykernel->jupyter)
>
> Requirement already satisfied: traitlets>=4.1.0 in
> /Library/Python/2.7/site-packages (from ipykernel->jupyter)
>
> Collecting terminado>=0.3.3; sys_platform != "win32" (from
> notebook->jupyter)
>
>   Using cached terminado-0.8.1-py2.py3-none-any.whl
>
> Requirement already satisfied: ipython-genutils in
> /Library/Python/2.7/site-packages (from notebook->jupyter)
>
> Collecting jinja2 (from notebook->jupyter)
>
>   Using cached Jinja2-2.10-py2.py3-none-any.whl
>
> Requirement already satisfied: jupyter-core in 
> /Library/Python/2.7/site-packages
> (from notebook->jupyter)
>
> Collecting nbformat (from notebook->jupyter)
>
>   Using cached nbformat-4.4.0-py2.py3-none-any.whl
>
> Collecting mistune>=0.7.4 (from nbconvert->jupyter)
>
>   Using cached mistune-0.8.3-py2.py3-none-any.whl
>
> Collecting bleach (from nbconvert->jupyter)
>
>   Using cached bleach-2.1.2-py2.py3-none-any.whl
>
> Collecting testpath (from nbconvert->jupyter)
>
>   Using cached testpath-0.3.1-py2.py3-none-any.whl
>
> Collecting pandocfilters>=1.4.1 (from nbconvert->jupyter)
>
>   Using cached pandocfilters-1.4.2.tar.gz
>
> Collecting entrypoints>=0.2.2 (from nbconvert->jupyter)
>
>   Using cached entrypoints-0.2.3-py2.py3-none-any.whl
>
> Collecting widgetsnbextension~=3.0.0 (from ipywidgets->jupyter)
>
>   Using cached widgetsnbextension-3.0.8-py2.py3-none-any.whl
>
> Requirement already satisfied: pyzmq>=13 in /Library/Python/2.7/site-packages
> (from jupyter-client->jupyter-console->jupyter)
>
> Requirement already satisfied: python-dateutil>=2.1 in
> /Library/Python/2.7/site-packages (from jupyter-client->jupyter-
> console->jupyter)
>
> Requirement already satisfied: setuptools>=18.5 in
> /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python
> (from ipython->jupyter-console->jupyter)
>
> Requirement already satisfied: simplegeneric>0.8 in
> /Library/Python/2.7/site-packages (from ipython->jupyter-console->jupyter)
>
> Collecting backports.shutil-get-terminal-size; python_version == "2.7"
> (from ipython->jupyter-console->jupyter)
>
>   Using cached backports.shutil_get_terminal_size-1.0.0-py2.py3-none-any.
> whl
>
> Requirement already satisfied: appnope; sys_platform == "darwin" in
> /Library/Python/2.7/site-packages (from ipython->jupyter-console->jupyter)
>
> Requirement already satisfied: pexpect; sys_platform != "win32" in
> /Library/Python/2.7/site-packages (from ipython->jupyter-console->jupyter)
>
> Requirement already satisfied: pickleshare in 
> /Library/Python/2.7/site-packages
> (from ipython->jupyter-console->jupyter)
>
> Requirement already satisfied: decorator in /Library/Python/2.7/site-packages
> (from ipython->jupyter-console->jupyter)
>
> Requirement already satisfied: pathlib2; python_version == "2.7" or
> python_version == "3.3" in /Library/Python/2.7/site-packages (from
> ipython->jupyter-console->jupyter)
>
> Requirement already satisfied: wcwidth in /Library/Python/2.7/site-packages
> (from prompt-toolkit<2.0.0,>=1.0.0->jupyter-console->jupyter)
>
> Requirement already satisfied: six>=1.9.0 in /Library/Python/2.7/site-packages
> (from prompt-toolkit<2.0.0,>=1.0.0->jupyter-console->jupyter)
>
> Requirement already satisfied: singledispatch in 
> /Library/Python/2.7/site-packages
> (from tornado>=4.0->ipykernel->jupyter)
>
> Requirement already satisfied: certifi in /Library/Python/2.7/site-packages
> (from tornado>=4.0->ipykernel->jupyter)
>
> Requirement already satisfied: backports_abc>=0.4 in
> /Library/Python/2.7/site-packages (from tornado>=4.0->ipykernel->jupyter)
>
> Collecting enum34; python_version == "2.7" (from
> traitlets>=4.1.0->ipykernel->jupyter)
>
>   Using cached enum34-1.1.6-py2-none-any.whl
>
> Requirement already satisfied: ptyprocess; os_name != "nt" in
> /Library/Python/2.7/site-packages (from terminado>=0.3.3; sys_platform !=
> "win32"->notebook->jupyter)
>
> Collecting MarkupSafe>=0.23 (from jinja2->notebook->jupyter)
>
>   Using cached MarkupSafe-1.0.tar.gz
>
> Requirement already satisfied: jsonschema!=2.5.0,>=2.4 in
> /Library/Python/2.7/site-packages (from nbformat->notebook->jupyter)
>
> Collecting 
> html5lib!=1.0b1,!=1.0b2,!=1.0b3,!=1.0b4,!=1.0b5,!=1.0b6,!=1.0b7,!=1.0b8,>=0.99999999pre
> (from bleach->nbconvert->jupyter)
>
>   Using cached html5lib-1.0.1-py2.py3-none-any.whl
>
> Collecting configparser>=3.5; python_version == "2.7" (from
> entrypoints>=0.2.2->nbconvert->jupyter)
>
>   Using cached configparser-3.5.0.tar.gz
>
> Requirement already satisfied: scandir; python_version < "3.5" in
> /Library/Python/2.7/site-packages (from pathlib2; python_version == "2.7"
> or python_version == "3.3"->ipython->jupyter-console->jupyter)
>
> Requirement already satisfied: functools32; python_version == "2.7" in
> /Library/Python/2.7/site-packages (from jsonschema!=2.5.0,>=2.4->
> nbformat->notebook->jupyter)
>
> Collecting webencodings (from html5lib!=1.0b1,!=1.0b2,!=1.
> 0b3,!=1.0b4,!=1.0b5,!=1.0b6,!=1.0b7,!=1.0b8,>=0.99999999pre-
> >bleach->nbconvert->jupyter)
>
>   Using cached webencodings-0.5.1-py2.py3-none-any.whl
>
> Installing collected packages: jupyter-console, terminado, MarkupSafe,
> jinja2, mistune, nbformat, webencodings, html5lib, bleach, testpath,
> pandocfilters, configparser, entrypoints, nbconvert, notebook, qtconsole,
> widgetsnbextension, ipywidgets, jupyter, backports.shutil-get-terminal-size,
> enum34
>
>   Running setup.py install for MarkupSafe ... done
>
>   Running setup.py install for pandocfilters ... done
>
>   Running setup.py install for configparser ... done
>
> Exception:
>
> Traceback (most recent call last):
>
>   File 
> "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/basecommand.py",
> line 215, in main
>
>     status = self.run(options, args)
>
>   File 
> "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/commands/install.py",
> line 342, in run
>
>     prefix=options.prefix_path,
>
>   File 
> "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_set.py",
> line 784, in install
>
>     **kwargs
>
>   File 
> "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py",
> line 851, in install
>
>     self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
>
>   File 
> "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py",
> line 1064, in move_wheel_files
>
>     isolated=self.isolated,
>
>   File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/wheel.py",
> line 377, in move_wheel_files
>
>     clobber(source, dest, False, fixer=fixer, filter=filter)
>
>   File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/wheel.py",
> line 316, in clobber
>
>     ensure_dir(destdir)
>
>   File 
> "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/utils/__init__.py",
> line 83, in ensure_dir
>
>     os.makedirs(path)
>
>   File 
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py",
> line 150, in makedirs
>
>     makedirs(head, mode)
>
>   File 
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py",
> line 150, in makedirs
>
>     makedirs(head, mode)
>
>   File 
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py",
> line 150, in makedirs
>
>     makedirs(head, mode)
>
>   File 
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py",
> line 157, in makedirs
>
>     mkdir(name, mode)
> OSError: [Errno 1] Operation not permitted: '/System/Library/Frameworks/
> Python.framework/Versions/2.7/share'
>
> --
> You received this message because you are subscribed to the Google Groups
> "Project Jupyter" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jupyter+unsubscr...@googlegroups.com.
> To post to this group, send email to jupyter@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jupyter/7f9b5ba0-6fe7-40e1-9ba4-8881a20975c8%40googlegroups.com
> <https://groups.google.com/d/msgid/jupyter/7f9b5ba0-6fe7-40e1-9ba4-8881a20975c8%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jupyter+unsubscr...@googlegroups.com.
To post to this group, send email to jupyter@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/CAOvn4qjhbk9YqiKGdBxzHK0Hr4TrmCK22xfGBJ4nodQAoFWSng%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to