Numpy: numpy(python)๋ฅผ ์ œ๊ฑฐํ•  ์ˆ˜ ์—†๋Š” ์ด์œ ๋Š” ๋ฌด์—‡์ž…๋‹ˆ๊นŒ? ์ˆ˜ํ–‰ํ•˜๋Š” ๋ฐฉ๋ฒ• ?

์— ๋งŒ๋“  2016๋…„ 11์›” 13์ผ  ยท  6์ฝ”๋ฉ˜ํŠธ  ยท  ์ถœ์ฒ˜: numpy/numpy

numpy git:(master) sudo pip   uninstall  numpy


The directory '/Users/tonylibai/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.
DEPRECATION: Uninstalling a distutils installed project (numpy) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.
Uninstalling numpy-1.8.0rc1:
  /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy-1.8.0rc1-py2.7.egg-info
Proceed (y/n)? y
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/uninstall.py", line 76, in run
    requirement_set.uninstall(auto_confirm=options.yes)
  File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_set.py", line 346, in uninstall
    req.uninstall(auto_confirm=auto_confirm)
  File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py", line 754, in uninstall
    paths_to_remove.remove(auto_confirm)
  File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_uninstall.py", line 115, in remove
    renames(path, new_path)
  File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/utils/__init__.py", line 267, 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-gCa9Bv-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy-1.8.0rc1-py2.7.egg-info'
The directory '/Users/tonylibai/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.`

```

๊ฐ€์žฅ ์œ ์šฉํ•œ ๋Œ“๊ธ€

๋‚˜๋Š” "์–ด๋–ป๊ฒŒ"๊ฐ€ ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค,

๋‹น์‹ ์€ "์™œ"๋ฅผ ์ œ๊ณต,

๋‹ค๋ฅธ ์‚ฌ๋žŒ๋“ค์—๊ฒŒ ๋„์›€์„ ์ฃผ์‹ญ์‹œ์˜ค.

๋ชจ๋“  6 ๋Œ“๊ธ€

Operation not permitted ์˜ค๋ฅ˜ ๋ฉ”์‹œ์ง€๊ฐ€ ๋งค์šฐ ๋ช…ํ™•ํ•ด์กŒ์Šต๋‹ˆ๋‹ค. ์ฆ‰, ์ด ์ž‘์—…์„ ์™„๋ฃŒํ•  ๊ถŒํ•œ์ด ์—†์Šต๋‹ˆ๋‹ค.

์ œ๊ฑฐํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ์•Œ๋ ค์ฃผ์‹œ๊ฒ ์Šต๋‹ˆ๊นŒ?

์˜ค๋ฅ˜ ๋ฉ”์‹œ์ง€๋Š” ์ด๋ฏธ ๊ธธ์„ ์•ˆ๋‚ดํ–ˆ์Šต๋‹ˆ๋‹ค.

๋””๋ ‰ํ† ๋ฆฌ '/Users/tonylibai/Library/Caches/pip/http' ๋˜๋Š” ๊ทธ ์ƒ์œ„ ๋””๋ ‰ํ† ๋ฆฌ๋Š” ํ˜„์žฌ ์‚ฌ์šฉ์ž๊ฐ€ ์†Œ์œ ํ•˜์ง€ ์•Š์œผ๋ฉฐ ์บ์‹œ๊ฐ€ ๋น„ํ™œ์„ฑํ™”๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ํ•ด๋‹น ๋””๋ ‰ํ† ๋ฆฌ์˜ ๊ถŒํ•œ๊ณผ ์†Œ์œ ์ž๋ฅผ ํ™•์ธํ•˜์‹ญ์‹œ์˜ค. sudo๋กœ pip๋ฅผ ์‹คํ–‰ํ•˜๋Š” ๊ฒฝ์šฐ sudo์˜ -H ํ”Œ๋ž˜๊ทธ๊ฐ€ ํ•„์š”ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

์˜ค๋ฅ˜ ๋ฉ”์‹œ์ง€๋ฅผ ์ฃผ์˜ ๊นŠ๊ฒŒ ์ฝ์–ด๋ณด์ง€ ์•Š์œผ์‹œ๊ฒ ์Šต๋‹ˆ๊นŒ?

๋‚˜๋Š” "์–ด๋–ป๊ฒŒ"๊ฐ€ ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค,

๋‹น์‹ ์€ "์™œ"๋ฅผ ์ œ๊ณต,

๋‹ค๋ฅธ ์‚ฌ๋žŒ๋“ค์—๊ฒŒ ๋„์›€์„ ์ฃผ์‹ญ์‹œ์˜ค.

๋ฌธ์ œ ์ถ”์ ๊ธฐ๋Š” ์ผ๋ฐ˜์ ์ธ ์‚ฌ์šฉ์ž ์ง€์› ์งˆ๋ฌธ์ด ์•„๋‹ˆ๋ผ ์ฃผ๋กœ ๋ฒ„๊ทธ ๋ณด๊ณ ์šฉ์ž…๋‹ˆ๋‹ค.
stackoverflow.com, superuser.com ๋˜๋Š” ๋ฉ”์ผ๋ง ๋ฆฌ์ŠคํŠธ๊ฐ€ ์ด๋Ÿฌํ•œ ์งˆ๋ฌธ์— ๋” ์ ํ•ฉํ•ฉ๋‹ˆ๋‹ค.

lol ๋‚ด๊ฐ€ ๋ณธ ๊ฐ€์žฅ ์žฌ๋ฏธ์žˆ๋Š” ๋ฌธ์ œ

์ด ํŽ˜์ด์ง€๊ฐ€ ๋„์›€์ด ๋˜์—ˆ๋‚˜์š”?
0 / 5 - 0 ๋“ฑ๊ธ‰