Python 3.6 No module named pip

前端 未结 3 1807
耶瑟儿~
耶瑟儿~ 2020-12-09 07:26

I have just installed Python 3.6 on Fedora 25 (64 bits) by running dnf install python36 and I can\'t use any modules Python 3.5 can otherwise use just fine, for

相关标签:
3条回答
  • 2020-12-09 08:09

    sudo dnf install python3

    Try this.

    0 讨论(0)
  • 2020-12-09 08:13

    In Debian distributions, you can run

    sudo apt-get install python-pip ##for python2
    
    sudo apt-get install python3-pip ##for python3
    
    0 讨论(0)
  • 2020-12-09 08:18

    On Fedora 25 Python 3.6 comes as a minimalistic version without pip and without additional dnf installable modules.

    But you can manually install pip:

    wget https://bootstrap.pypa.io/get-pip.py
    sudo python3.6 get-pip.py
    

    After that you can use it as python3.6 -m pip or just pip3.6.

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