Eu fiz o seguinte sem problemas:
brew install python3
pip3 install numpy
pip3 install scipy
Mas ao tentar:
pip3 install ipython
Eu recebo:
Exception:
Traceback (most recent call last):
File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pip-6.0.6-py3.4.egg/pip/basecommand.py", line 232, in main
status = self.run(options, args)
File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pip-6.0.6-py3.4.egg/pip/commands/install.py", line 347, in run
root=options.root_path,
File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pip-6.0.6-py3.4.egg/pip/req/req_set.py", line 549, in install
**kwargs
File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pip-6.0.6-py3.4.egg/pip/req/req_install.py", line 751, in install
self.move_wheel_files(self.source_dir, root=root)
File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pip-6.0.6-py3.4.egg/pip/req/req_install.py", line 960, in move_wheel_files
isolated=self.isolated,
File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pip-6.0.6-py3.4.egg/pip/wheel.py", line 374, in move_wheel_files
maker.make_multiple(['%s = %s' % kv for kv in console.items()])
File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pip-6.0.6-py3.4.egg/pip/_vendor/distlib/scripts.py", line 334, in make_multiple
filenames.extend(self.make(specification, options))
File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pip-6.0.6-py3.4.egg/pip/_vendor/distlib/scripts.py", line 323, in make
self._make_script(entry, filenames, options=options)
File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pip-6.0.6-py3.4.egg/pip/_vendor/distlib/scripts.py", line 227, in _make_script
self._write_script(scriptnames, shebang, script, filenames, ext)
File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pip-6.0.6-py3.4.egg/pip/_vendor/distlib/scripts.py", line 201, in _write_script
self._fileop.write_binary_file(outname, script_bytes)
File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pip-6.0.6-py3.4.egg/pip/_vendor/distlib/util.py", line 388, in write_binary_file
with open(path, 'wb') as f:
PermissionError: [Errno 13] Permission denied: '/usr/local/bin/ipcontroller'
Por que isso não funciona? Como posso contornar esses erros?
pip
Você usa
--user
, a menos que você esteja instalando como superusuário (su) por algum motivo.pip3 install --user ipython
https://pip.pypa.io/en/stable/reference/pip_install/#cmdoption-user
https://github.com/ipython/ipython/blob/master/README.rst
fonte