pip3: command not found

前端 未结 6 1100
既然无缘
既然无缘 2021-02-02 11:14

I want to install Tensorflow following this instructions. https://www.tensorflow.org/versions/r0.12/get_started/os_setup#pip_installation.

But when I try this code on

相关标签:
6条回答
  • 2021-02-02 12:01

    You would need to install pip3.

    On Linux, the command would be: sudo apt install python3-pip

    On Mac, using brew, first brew install python3
    Then brew postinstall python3

    Try calling pip3 -V to see if it worked.

    0 讨论(0)
  • 2021-02-02 12:04

    I had this issue and I fixed it using the following steps You need to completely uninstall python3-p using:

    sudo apt-get --purge autoremove python3-pip
    

    Then resintall the package with:

     sudo apt install python3-pip
    

    To confirm that everything works, run:

     pip3 -V
    

    After this you can now use pip3 to manage any python package of your interest. Eg

    pip3 install NumPy
    
    0 讨论(0)
  • 2021-02-02 12:08

    Try this if other methods do not work:

    1. brew install python3
    2. brew link --overwrite python
    3. brew postinstall python3
    0 讨论(0)
  • 2021-02-02 12:13

    Writing the whole path/directory eg. (for windows) C:\Programs\Python\Python36-32\Scripts\pip3.exe install mypackage. This worked well for me when I had trouble with pip.

    0 讨论(0)
  • 2021-02-02 12:18

    After yum install python3-pip, check the name of the installed binary. e.g.

    ll /usr/bin/pip*
    

    On my CentOS 7, it is named as pip-3 instead of pip3.

    0 讨论(0)
  • 2021-02-02 12:19

    its possible if you already have a python installed (pip) you could do a upgrade on mac by

    brew upgrade python
    
    0 讨论(0)
提交回复
热议问题