安装scrapy出现警告Consider adding this directory to PATH

安装scrapy出现警告Consider adding this directory to PATH导致的问题

今天安装pip install scrapy 成功了,但出现了如下警告:

The script automat-visualize.exe is installed in ‘C:\Users\bnb88\AppData\Roaming\Python\Python37\Scripts’ which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

这个提示应该是没有把这个文件装进环境变量里面,我添加之后,在终端创建scrapy startproject douban文件的时候又出幺蛾子,如下:

**
scrapy : 无法将“scrapy”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。
所在位置 行:1 字符: 1

  • scrapy startproject douban
  •   + CategoryInfo          : ObjectNotFound: (scrapy:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException**
      
    

查询了一下,在命令前面加上 py -m 就好了,于是
在终端输入 py -m scrapy startproject douban
文件创建成功!
在这里插入图片描述

WARNING: The script easy_install-3.9 is installed in '/home/gucci/Python-3.9.0/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. WARNING: The scripts pip3 and pip3.9 are installed in '/home/gucci/Python-3.9.0/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. WARNING: The script easy_install-3.9 is installed in '/home/gucci/Python-3.9.0/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. WARNING: The scripts pip3 and pip3.9 are installed in '/home/gucci/Python-3.9.0/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. WARNING: The script easy_install-3.9 is installed in '/home/gucci/Python-3.9.0/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. WARNING: The scripts pip3 and pip3.9 are installed in '/home/gucci/Python-3.9.0/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. WARNING: The script easy_install-3.9 is installed in '/home/gucci/Python-3.9.0/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
07-14
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值