startproject不适用于git

startproject不适用于git

本文介绍了Scrapy startproject不适用于git-bash的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用git-bash的系统上使用win7.我已经安装了Miniconda并使用以下命令加载了scrapy:

I'm working on win7 on a system with git-bash. I've installed Miniconda and loaded scrapy using:

conda install -c scrapinghub scrapy

我将环境变量设置为包含以下内容:

I've set the environmental variables to contain:

C:\Miniconda2;C:\Miniconda2\Scripts

现在,当我这样做时,现在就在蓬乱的vitualenv中:

Now within the scrapy vitualenv, when I do :

(scrapy)
$ scrapy startproject scrapytest
sh: scrapy: command not found

如何在此处使用scrapy命令行工具?

How do I use the scrapy command line tool here?

推荐答案

我不知道git-bash对此有何影响,但安装了scrapy 注册一个入口点(控制台脚本),并调用scrapy.cmdline:execute.有关入口点的更多信息,请参见此页面.

I don't know how git-bash has effect on this, but installing scrapy registers one entry point, a console script, calling scrapy.cmdline:execute. See this page for more info on entry points.

您可以使用带有-m的python解释器调用相同的代码:

You can invoke the same using the python interpreter with -m like this:

python -m scrapy.cmdline startproject scrapytest

这篇关于Scrapy startproject不适用于git-bash的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-30 18:08