Python Forum
Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
install ipython on Mac
#1
Hello all,

After many years with C, C++ and Matlab, I have decided to learn using Python now.

But my first obstacle is how to successfully install ipython on my Mac. I followed the instructions I searched but the installation seems to be failed. Below are the messages I got:

XXXs-MacBook-Air-2:~ Lan$ sudo pip install ipython[all]
The directory '/Users/Lan/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/Lan/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied: ipython[all] in /Library/Python/2.7/site-packages
Requirement already satisfied: decorator in /Library/Python/2.7/site-packages (from ipython[all])
Requirement already satisfied: setuptools>=18.5 in ./Library/Python/2.7/lib/python/site-packages (from ipython[all])
Requirement already satisfied: pickleshare in /Library/Python/2.7/site-packages (from ipython[all])
Requirement already satisfied: backports.shutil-get-terminal-size; python_version == "2.7" in /Library/Python/2.7/site-packages (from ipython[all])
Requirement already satisfied: pygments in /Library/Python/2.7/site-packages (from ipython[all])
Requirement already satisfied: pexpect; sys_platform != "win32" in /Library/Python/2.7/site-packages (from ipython[all])
Requirement already satisfied: pathlib2; python_version == "2.7" or python_version == "3.3" in /Library/Python/2.7/site-packages (from ipython[all])
Requirement already satisfied: simplegeneric>0.8 in /Library/Python/2.7/site-packages (from ipython[all])
Requirement already satisfied: prompt-toolkit<2.0.0,>=1.0.3 in /Library/Python/2.7/site-packages (from ipython[all])
Requirement already satisfied: traitlets>=4.2 in /Library/Python/2.7/site-packages (from ipython[all])
Requirement already satisfied: appnope; sys_platform == "darwin" in /Library/Python/2.7/site-packages (from ipython[all])
Requirement already satisfied: notebook; extra == "all" in /Library/Python/2.7/site-packages (from ipython[all])
Requirement already satisfied: ipykernel; extra == "all" in /Library/Python/2.7/site-packages (from ipython[all])
Requirement already satisfied: qtconsole; extra == "all" in /Library/Python/2.7/site-packages (from ipython[all])
Requirement already satisfied: testpath; extra == "all" in /Library/Python/2.7/site-packages (from ipython[all])
Collecting ipywidgets; extra == "all" (from ipython[all])
  Downloading ipywidgets-5.2.2-py2.py3-none-any.whl (43kB)
    100% |████████████████████████████████| 51kB 1.2MB/s 
Collecting Sphinx>=1.3; extra == "all" (from ipython[all])
  Downloading Sphinx-1.5-py2.py3-none-any.whl (1.7MB)
    100% |████████████████████████████████| 1.7MB 163kB/s 
Requirement already satisfied: nbformat; extra == "all" in /Library/Python/2.7/site-packages (from ipython[all])
Requirement already satisfied: nbconvert; extra == "all" in /Library/Python/2.7/site-packages (from ipython[all])
Collecting ipyparallel; extra == "all" (from ipython[all])
  Downloading ipyparallel-5.2.0-py2.py3-none-any.whl (188kB)
    100% |████████████████████████████████| 194kB 4.7MB/s 
Collecting requests; extra == "all" (from ipython[all])
  Downloading requests-2.12.3-py2.py3-none-any.whl (575kB)
    100% |████████████████████████████████| 583kB 1.3MB/s 
Collecting nose>=0.10.1; extra == "all" (from ipython[all])
  Downloading nose-1.3.7-py2-none-any.whl (154kB)
    100% |████████████████████████████████| 163kB 3.1MB/s 
Requirement already satisfied: numpy; extra == "all" in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from ipython[all])
Requirement already satisfied: ptyprocess>=0.5 in /Library/Python/2.7/site-packages (from pexpect; sys_platform != "win32"->ipython[all])
Requirement already satisfied: six in ./Library/Python/2.7/lib/python/site-packages (from pathlib2; python_version == "2.7" or python_version == "3.3"->ipython[all])
Requirement already satisfied: wcwidth in /Library/Python/2.7/site-packages (from prompt-toolkit<2.0.0,>=1.0.3->ipython[all])
Requirement already satisfied: enum34; python_version == "2.7" in /Library/Python/2.7/site-packages (from traitlets>=4.2->ipython[all])
Requirement already satisfied: ipython-genutils in /Library/Python/2.7/site-packages (from traitlets>=4.2->ipython[all])
Requirement already satisfied: terminado>=0.3.3; sys_platform != "win32" in /Library/Python/2.7/site-packages (from notebook; extra == "all"->ipython[all])
Requirement already satisfied: tornado>=4 in /Library/Python/2.7/site-packages (from notebook; extra == "all"->ipython[all])
Requirement already satisfied: jupyter-core in /Library/Python/2.7/site-packages (from notebook; extra == "all"->ipython[all])
Requirement already satisfied: jinja2 in /Library/Python/2.7/site-packages (from notebook; extra == "all"->ipython[all])
Requirement already satisfied: jupyter-client in /Library/Python/2.7/site-packages (from notebook; extra == "all"->ipython[all])
Requirement already satisfied: widgetsnbextension>=1.2.6 in /Library/Python/2.7/site-packages (from ipywidgets; extra == "all"->ipython[all])
Collecting babel!=2.0,>=1.3 (from Sphinx>=1.3; extra == "all"->ipython[all])
  Downloading Babel-2.3.4-py2.py3-none-any.whl (7.1MB)
    100% |████████████████████████████████| 7.1MB 125kB/s 
Collecting docutils>=0.11 (from Sphinx>=1.3; extra == "all"->ipython[all])
  Downloading docutils-0.12.tar.gz (1.6MB)
    100% |████████████████████████████████| 1.6MB 526kB/s 
Collecting alabaster<0.8,>=0.7 (from Sphinx>=1.3; extra == "all"->ipython[all])
  Downloading alabaster-0.7.9-py2.py3-none-any.whl
Collecting snowballstemmer>=1.1 (from Sphinx>=1.3; extra == "all"->ipython[all])
  Downloading snowballstemmer-1.2.1-py2.py3-none-any.whl (64kB)
    100% |████████████████████████████████| 71kB 2.8MB/s 
Collecting imagesize (from Sphinx>=1.3; extra == "all"->ipython[all])
  Downloading imagesize-0.7.1-py2.py3-none-any.whl
Requirement already satisfied: jsonschema!=2.5.0,>=2.4 in /Library/Python/2.7/site-packages (from nbformat; extra == "all"->ipython[all])
Requirement already satisfied: entrypoints in /Library/Python/2.7/site-packages (from nbconvert; extra == "all"->ipython[all])
Requirement already satisfied: mistune!=0.6 in /Library/Python/2.7/site-packages (from nbconvert; extra == "all"->ipython[all])
Requirement already satisfied: pyzmq>=13 in /Library/Python/2.7/site-packages (from ipyparallel; extra == "all"->ipython[all])
Collecting futures; python_version == "2.7" (from ipyparallel; extra == "all"->ipython[all])
  Downloading futures-3.0.5-py2-none-any.whl
Requirement already satisfied: singledispatch in /Library/Python/2.7/site-packages (from tornado>=4->notebook; extra == "all"->ipython[all])
Requirement already satisfied: certifi in /Library/Python/2.7/site-packages (from tornado>=4->notebook; extra == "all"->ipython[all])
Requirement already satisfied: backports_abc>=0.4 in /Library/Python/2.7/site-packages (from tornado>=4->notebook; extra == "all"->ipython[all])
Requirement already satisfied: MarkupSafe in /Library/Python/2.7/site-packages (from jinja2->notebook; extra == "all"->ipython[all])
Requirement already satisfied: pytz>=0a in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from babel!=2.0,>=1.3->Sphinx>=1.3; extra == "all"->ipython[all])
Requirement already satisfied: functools32; python_version == "2.7" in /Library/Python/2.7/site-packages (from jsonschema!=2.5.0,>=2.4->nbformat; extra == "all"->ipython[all])
Requirement already satisfied: configparser>=3.5; python_version == "2.7" in /Library/Python/2.7/site-packages (from entrypoints->nbconvert; extra == "all"->ipython[all])
Installing collected packages: ipywidgets, requests, babel, docutils, alabaster, snowballstemmer, imagesize, Sphinx, futures, ipyparallel, nose
  Running setup.py install for docutils ... 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 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 1] Operation not permitted: '/System/Library/Frameworks/Python.framework/Versions/2.7/man'
Reply


Messages In This Thread
install ipython on Mac - by landlord1984 - Dec-08-2016, 02:27 AM
RE: Help a beginner - by Ofnuts - Dec-08-2016, 10:36 PM
RE: Help a beginner - by landlord1984 - Dec-09-2016, 05:02 AM
RE: install ipython on Mac - by Kebap - Dec-09-2016, 11:15 AM
RE: install ipython on Mac - by landlord1984 - Dec-09-2016, 04:33 PM
RE: install ipython on Mac - by nilamo - Dec-09-2016, 09:01 PM
RE: install ipython on Mac - by landlord1984 - Dec-11-2016, 05:00 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  IPython errors for numpy array min/max methods muelaner 1 681 Nov-04-2023, 09:22 PM
Last Post: snippsat
  Can a program execute code in iPython shell and get result? deanhystad 3 1,840 Jun-17-2022, 03:45 AM
Last Post: Larz60+
  IPython console vs Spyder script losc 3 2,840 Apr-30-2020, 04:57 AM
Last Post: deanhystad
  How can I create a multiline input in ipython? DataMower 3 4,479 Oct-28-2019, 08:50 PM
Last Post: DataMower
  ipython autocomplete broke indentation! Exsul 6 4,739 Aug-20-2019, 01:29 AM
Last Post: Exsul
  How to clear IPython console in Spyder? Vai 7 56,325 Aug-20-2018, 09:43 PM
Last Post: james_balcomb
  Stopwatch in Python/IPython shell suvadip 3 4,388 Jul-06-2018, 01:51 PM
Last Post: snippsat
  PyEDA-IPython Problem [Graph] embash 5 4,610 Jun-02-2018, 06:40 PM
Last Post: buran
  Spyder : Clear IPython Console whenever I re-run the script smallabc 0 5,319 Mar-04-2018, 08:05 AM
Last Post: smallabc
  Which versions of ipython implement --classic correctly penguian 3 3,391 Aug-29-2017, 12:55 PM
Last Post: defenderofthebit

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020