解决 ModuleNotFoundError: No module named ‘pyquery‘ 及 -bash: pip: command not found

解决 ModuleNotFoundError: No module named 'pyquery' 及 -bash: pip: command not found

  • 1、 ModuleNotFoundError: No module named 'pyquery'
  • ModuleNotFoundError: No module named 'requests'
  • 2、 -bash: pip: command not found pip命令报错 解决方法

1、 ModuleNotFoundError: No module named ‘pyquery’

通过如下命令安装pyquery模块:

pip install pyquery

ModuleNotFoundError: No module named ‘requests’

通过如下命令安装requests模块:

pip install requests

2、 -bash: pip: command not found pip命令报错 解决方法

-bash: pip: command not found pip命令报错 解决方法
-bash: pip: command not found
pip命令报错
解决方法(Centos版)
1、下载

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

2、安装

python get-pip.py

3、查看pip版本(如果本步骤正常,忽略4/5步)

pip -V

4、查找pip安装路径

find / -name pip

5、将pip添加到系统命令

ln -s  /usr/local/python/bin/pip /usr/bin/pip

你可能感兴趣的:(Linux,linux,pip,centos)