0
Pip은 내 컴퓨터에서 수년간 사용되었지만 최근에 작동하지 못했습니다. 이 문제를 해결하려면 내가 도망 :Pip이 설치되었지만 명령을 찾을 수 없습니다.
$ sudo python get-pip.py
The directory '/Users/tomeldridge/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/tomeldridge/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.
Collecting pip
Downloading pip-8.1.2-py2.py3-none-any.whl (1.2MB)
100% |████████████████████████████████| 1.2MB 759kB/s
Collecting wheel
Downloading wheel-0.29.0-py2.py3-none-any.whl (66kB)
100% |████████████████████████████████| 71kB 4.3MB/s
Installing collected packages: pip, wheel
Found existing installation: pip 7.1.2
Uninstalling pip-7.1.2:
Successfully uninstalled pip-7.1.2
Successfully installed pip-8.1.2 wheel-0.29.0
하지만 핍은 여전히 작동하지 않습니다
$ pip --version
-bash: pip: command not found
은 내가 $PATH
덤비는이 문제를 일으킨 것 같아.
내가`sudo는 bash는 -c '에코 $의 PATH'를 실행
내가 얻을 :/usr/sbin:/usr/bin:/sbin:/bin:usr/local/bin
이 맞습니까?
보통'pip' (대부분의 libs)는 보통 사용자 범위에 설치됩니다. 어쩌면 다른 사용자 계정에 로그인하셨습니까? – lucasnadalutti
이 명령은 어떨까요 : "python -m pip --version"? – guilhermecgs
'/ usr/local/opt'에 ** pip **라는 실행 파일이 있는지 확인할 수 있습니까? – JHolub