Ubuntu: pip not working with python3.4

后端 未结 4 1309
余生分开走
余生分开走 2021-02-01 03:55

Trying to get pip working on my Ubuntu pc. pip seems to be working for python2.7, but not for others.

Here\'s the problem:

$ pip
Traceback (most recent c         


        
4条回答
  •  再見小時候
    2021-02-01 04:22

    curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
    sudo python3 get-pip.py
    

    confirm its installation:

    pip3 --version    
    

    or

    python3 -m pip --version
    

    now go ahead and install your desired packages (for example numpy) using:

    pip3 install numpy
    

    or

    python3 -m pip install numpy
    

    Here is the reference: https://pip.pypa.io/en/stable/installing/

提交回复
热议问题