Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
added 78 characters in body
Source Link
123
  • 9k
  • 15
  • 69
  • 105

Pip has been on my machine for years, but recently I could not get it to work. To fix this I ran:

$ 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 

But pip still doesn't work:

$ pip --version -bash: pip: command not found 

What is the problem here? Pip is clearly installedI think I might have caused this issue messing with (and was before), but it simply will not work..$PATH.

When I run `sudo bash -c 'echo $PATH' I get:

/usr/sbin:/usr/bin:/sbin:/bin:usr/local/bin 

Is this correct?

Pip has been on my machine for years, but recently I could not get it to work. To fix this I ran:

$ 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 

But pip still doesn't work:

$ pip --version -bash: pip: command not found 

What is the problem here? Pip is clearly installed (and was before), but it simply will not work...

Pip has been on my machine for years, but recently I could not get it to work. To fix this I ran:

$ 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 

But pip still doesn't work:

$ pip --version -bash: pip: command not found 

I think I might have caused this issue messing with $PATH.

When I run `sudo bash -c 'echo $PATH' I get:

/usr/sbin:/usr/bin:/sbin:/bin:usr/local/bin 

Is this correct?

Source Link
123
  • 9k
  • 15
  • 69
  • 105

Pip is installed, but command not found

Pip has been on my machine for years, but recently I could not get it to work. To fix this I ran:

$ 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 

But pip still doesn't work:

$ pip --version -bash: pip: command not found 

What is the problem here? Pip is clearly installed (and was before), but it simply will not work...