Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation exception in EI Capitan #325

Closed
cl7 opened this issue Nov 22, 2015 · 7 comments
Closed

Installation exception in EI Capitan #325

cl7 opened this issue Nov 22, 2015 · 7 comments

Comments

@cl7
Copy link

cl7 commented Nov 22, 2015

Hi,
I am getting this errors after runing
"pip install https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl"
I am using OSX:10.11.1. Is it a permission problem? should I run sudo?
Thanks in advance!

Exception:
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/pip-1.5.4-py2.7.egg/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/Library/Python/2.7/site-packages/pip-1.5.4-py2.7.egg/pip/commands/install.py", line 283, in run
requirement_set.install(install_options, global_options, root=options.root_path)
File "/Library/Python/2.7/site-packages/pip-1.5.4-py2.7.egg/pip/req.py", line 1435, in install
requirement.install(install_options, global_options, _args, *_kwargs)
File "/Library/Python/2.7/site-packages/pip-1.5.4-py2.7.egg/pip/req.py", line 671, in install
self.move_wheel_files(self.source_dir, root=root)
File "/Library/Python/2.7/site-packages/pip-1.5.4-py2.7.egg/pip/req.py", line 901, in move_wheel_files
pycompile=self.pycompile,
File "/Library/Python/2.7/site-packages/pip-1.5.4-py2.7.egg/pip/wheel.py", line 207, in move_wheel_files
clobber(source, lib_dir, True)
File "/Library/Python/2.7/site-packages/pip-1.5.4-py2.7.egg/pip/wheel.py", line 194, in clobber
os.makedirs(destsubdir)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/external'

Storing debug log for failure in /var/folders/ky/4cxqzftd7q1844xgkvvb_4dc0000gn/T/tmpcQCpeO

@ghost
Copy link

ghost commented Nov 22, 2015

It worked for me with the super user permission.

Try sudo.

@cl7
Copy link
Author

cl7 commented Nov 22, 2015

Tried sudo, a different error:

Exception:

Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/pip-1.5.4-py2.7.egg/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/Library/Python/2.7/site-packages/pip-1.5.4-py2.7.egg/pip/commands/install.py", line 283, in run
requirement_set.install(install_options, global_options, root=options.root_path)
File "/Library/Python/2.7/site-packages/pip-1.5.4-py2.7.egg/pip/req.py", line 1431, in install
requirement.uninstall(auto_confirm=True)
File "/Library/Python/2.7/site-packages/pip-1.5.4-py2.7.egg/pip/req.py", line 598, in uninstall
paths_to_remove.remove(auto_confirm)
File "/Library/Python/2.7/site-packages/pip-1.5.4-py2.7.egg/pip/req.py", line 1836, in remove
renames(path, new_path)
File "/Library/Python/2.7/site-packages/pip-1.5.4-py2.7.egg/pip/util.py", line 295, in renames
shutil.move(old, new)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 302, in move
copy2(src, real_dst)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 131, in copy2
copystat(src, dst)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 103, in copystat
os.chflags(dst, st.st_flags)
OSError: [Errno 1] Operation not permitted: '/tmp/pip-mLMP2F-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy-1.8.0rc1-py2.7.egg-info'

Storing debug log for failure in /Users/Lin/Library/Logs/pip.log

@ghost
Copy link

ghost commented Nov 22, 2015

Operation not permitted, is usually a cause due to ownership issue. Try changing it and use the super user again.

@ebrevdo
Copy link
Contributor

ebrevdo commented Nov 23, 2015

If you continue having trouble with sudo, consider using a virtualenv following instructions in the howto here.

@atishpatel
Copy link

I had a similar issue. I believe it's because you are trying to update the system python version. This has issues with a feature Apple introduced called " System Integrity Protection". Instead, you should install a user version of Python and use that.
Try something like this:
brew install python
brew doctor
(Read the errors, and fix issues related to python like linking issues) (I had to do 'brew link --overwrite python')
pip install --upgrade numpy
Then try installing TensorFlow.

@yanghoonkim
Copy link

I faced the same problem and I found that I can still import tensorflow and have no problem to run some simple code related to tensorflow.
will I face other problem later ?

@vrv
Copy link

vrv commented Dec 23, 2015

@ad26kt: if you do, let us know.

@vrv vrv closed this as completed Dec 23, 2015
tensorflow-copybara pushed a commit that referenced this issue Dec 19, 2019
This function has been declared as a part of the LLVMFuncOp interface but never
implemented.

Closes #325.

PiperOrigin-RevId: 286439619
Change-Id: I7f1c8c5c20ef2419c1a184fc0289f1f95b99c18e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants