{"id":905,"hash":"3bdce1c0c4b0027fb67614175058b12d46646560524ee19ef4c6abafe2d554f8","pattern":"pip3: command not found","full_message":"I want to install TensorFlow following these instructions: https://web.archive.org/web/20170627102751/https://www.tensorflow.org/versions/r0.12/get_started/os_setup#pip_installation\n\nBut when I try this code on terminal, it returns an error.\n\n$ sudo pip3 install --upgrade $TF_BINARY_URL\nsudo: pip3: command not found\n\nSo I installed Homebrew and tried to uninstall and reinstall python3-pip, but didn't work.\n\nMakotonoMacBook-ea:~ makotomiyazaki$ brew uninstall python3-pip\nError: No such keg: /usr/local/Cellar/python3-pip\n\nMakotonoMacBook-ea:~ makotomiyazaki$ brew install python3-pip\nError: No available formula with the name \"python3-pip\" \n==> Searching for a previously deleted formula...\nWarning: homebrew/core is shallow clone. To get complete history run:\n  git -C \"$(brew --repo homebrew/core)\" fetch --unshallow\n\nWhat should I do for getting pip3?\nMy OS is macOS High Sierra, and I have Python 3.6.2 already installed.\n\nEDIT: I tried\n\npython3 -m pip\n\nand what's returned was this:\n\nThe directory '/Users/makotomiyazaki/Library/Caches/pip/http' or its \nparent directory is not owned by the current user and the cache has \nbeen disabled. Please check the permissions and owner of that \ndirectory. If executing pip with sudo, you may want sudo's -H flag.\nThe directory '/Users/makotomiyazaki/Library/Caches/pip' or its parent \ndirectory is not owned by the current user and caching wheels has been \ndisabled. check the permissions and owner of that directory. If \nexecuting pip with sudo, you may want sudo's -H flag.\nYou must give at least one requirement to install (see \"pip help \ninstall\")\n\nI also tried which pip3, but just I don't know if it worked...\n\nMakotonoMacBook-ea:~ makotomiyazaki$ sudo which pip3 install --upgrade $TF_BINARY_URL\n/usr/bin/install","ecosystem":"pypi","package_name":"tensorflow","package_version":null,"solution":"You would need to install pip3.\n\nOn Linux, run first sudo apt update. Then the command would be: sudo apt install python3-pip\n\nOn Mac, using brew, first brew install python3\n\nThen brew postinstall python3\n\nTry calling pip3 -V to see if it worked.","confidence":0.95,"source":"stackoverflow","source_url":"https://stackoverflow.com/questions/48014769/pip3-command-not-found","votes":79,"created_at":"2026-04-19T04:51:57.737517+00:00","updated_at":"2026-04-19T04:51:57.737517+00:00"}