0
ピップは私のマシン上に何年もありましたが、最近は動作できませんでした。この問題を解決するために、私は走った:ピップがインストールされていますが、コマンドが見つかりません
$ 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