pip3: command not found but python3-pip is already installed

前端 未结 9 2107
执笔经年
执笔经年 2021-01-30 03:23

I can\'t use pip3 though python3-pip has already been installed. How to solve the problem?

sudo pip3 install virtualenv
sudo: pip3: command not found

sudo apt-g         


        
9条回答
  •  不要未来只要你来
    2021-01-30 03:48

    Probably pip3 is installed in /usr/local/bin/ which is not in the PATH of the sudo (root) user. Use this instead

    sudo /usr/local/bin/pip3 install virtualenv
    

提交回复
热议问题