安装完对Scrapy进行测试的时候发现了问题

    1. scrapy -h
    2. Fatal error in launcher: Unable to create process ...

    第一次运行scrapy出现了上面的报错,原因是电脑中安装了多个python版本,所以导致报错。
    解决方法就是指明使用的Python版本就好。我的Win10默认使用anaconda中的Python3,所以直接使用 python -m scrapy -h 命令就可以。不同的版本可以将 python 替换为 python2 或者 python3 进行调用即可

    1. python -m scrapy -h
    2. Scrapy 2.1.0 - no active project
    3. Usage:
    4. scrapy <command> [options] [args]
    5. Available commands:
    6. bench Run quick benchmark test
    7. fetch Fetch a URL using the Scrapy downloader
    8. genspider Generate new spider using pre-defined templates
    9. runspider Run a self-contained spider (without creating a project)
    10. settings Get settings values
    11. shell Interactive scraping console
    12. startproject Create new project
    13. version Print Scrapy version
    14. view Open URL in browser, as seen by Scrapy
    15. [ more ] More commands available when run from project directory
    16. Use "scrapy <command> -h" to see more info about a command