How to install pip on python 3.6, not the default python 2.7?

后端 未结 1 929
臣服心动
臣服心动 2021-01-20 11:14

So all day, I have been trying to install pip. I\'ve executed curl https://bootstrap.pypa.io/get-pip.py > get-pip.py. Then sudo python get-pip.py

相关标签:
1条回答
  • 2021-01-20 12:17

    You shouldn't delete the system python. Delete nothing in /Library/Python or it's subfolders.

    How did you install python 3.6? Usually, it'll be installed as python3.6 with a symlink to python3. pip3 is usually installed with it.

    So what you probably wanted to do was:

    pip3 install numpy
    python3
    >>> import numpy
    
    0 讨论(0)
提交回复
热议问题