How can I install Python's pip3 on my Mac?

前端 未结 11 1819
春和景丽
春和景丽 2020-12-07 10:05

I\'m trying to install pip3, but I\'m not having any luck. Also, I tried sudo install and it did not work. How could I install pip3 on my Mac?



        
11条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-07 10:54

    I also encountered the same problem but brew install python3 does not work properly to install pip3.

    brre will throw the warning The post-install step did not complete successfully.

    It has to do with homebrew does not have permission to /usr/local

    Create the directory if not exist

    sudo mkdir lib 
    sudo mkdir Frameworks
    

    Give the permissions inside /usr/local to homebrew so it can access them:

    sudo chown -R $(whoami) $(brew --prefix)/*
    

    Now ostinstall python3

    brew postinstall python3
    

    This will give you a successful installation

提交回复
热议问题