pip3: command not found but pyth

2019-03-16  本文已影响0人  zzw1987

在常用pip3中 pip3 install -r requirements.txt
可能会提示
Command 'pip3' not found, but can be installed with:

sudo apt install python3-pip
装python3-pip会显示已经安装python3-pip is already installed
用下面的命令行即可

locate pip3 //查看pip3的位置
提示:
/home/××/PycharmProjects/untitled/venv/bin/pip3
/home/××/PycharmProjects/untitled/venv/bin/pip3.6
/usr/share/man/man1/pip3.1.gz
/var/crash/_usr_bin_pip3.0.crash
sudo ln -s /home/××/PycharmProjects/untitled/venv/bin/pip3.6 /usr/local/bin/pip3

完成!

上一篇下一篇

猜你喜欢

热点阅读