2017-05-12 2 views
1

저는 완전히 파이썬에 익숙하므로 gensim을 설치하려고 시도하고 있지만 설치하지는 않았습니다. 나는 맥을 사용하고있다. 다음은 pip와 함께 gensim을 설치할 수 없습니다.

출력 내가 터미널에서 얻고있다 :

Requirement already up-to-date: six>=1.5.0 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/six-1.10.0-py2.7.egg (from gensim) 
Requirement already up-to-date: boto>=2.32 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from smart-open>=1.2.1->gensim) 
Requirement already up-to-date: bz2file in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from smart-open>=1.2.1->gensim) 
Requirement already up-to-date: requests in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from smart-open>=1.2.1->gensim) 
Installing collected packages: numpy, scipy, gensim 
    Found existing installation: numpy 1.8.0rc1 
    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: 
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 778, in install 
    requirement.uninstall(auto_confirm=True) 
    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 "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 302, in move 
    copy2(src, real_dst) 
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 131, in copy2 
    copystat(src, dst) 
    File "/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-lCcMmh-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy-1.8.0rc1-py2.7.egg-info' 

답변

0

시스템 파이썬은 OS 공급 업체 (애플, 캐 노니 컬, 등)에 의해 관리되며, 다른 OS에서 사용하기위한 것입니다 내장 도구. 피어싱 된 파이썬에서 삐딱 소리가 나는 것은 위험합니다. 엘 캐피탈 (El Capital) 이래로 SIP 보호는 이러한 일들을 깨뜨리는 것이 더 좋은 이유입니다. 별도의 파이썬 배포판을 설치하거나 --user 옵션을 사용하여 pip를 사용하면 상승 된 루트 액세스가 필요하지 않게됩니다. 당신은 여전히 ​​$ 경로에 사용자의 bin 폴더를 추가 할 수 있습니다 -이

사용 : sudo를 핍 gensim --user를 설치

관련 문제