先判断pip是否已经安装

  • pip --version

确认已经安装后,使用pip安装库

  pip3 install PackageName

  eg: pip3 install Scrapy