无法安装Scrapy for Python 2.7

时间:2014-04-16 02:13:14

标签: python-2.7 install scrapy

我正在尝试根据Installation guide - Scrapy 0.22.2 documentation安装Scrapy for Python 2.7。我已经安装了pip,但是当我尝试从Windows 8命令提示符运行以下命令时:

pip install Scrapy

它似乎没有正确安装,这里是pip.log的结尾

C:\Python27\lib\disutils\dist.py:267: UserWarning: Unknown distribution option: 'butrack_url'
  warnings.warn(msg)

error: Unable to find vcvarsall.bat

----------------------------------------
Cleaning up...
  Removing temporary dir c:\users\mgarrett\appdata\local\temp\pip_build_mgarrett...
Command C:\Python27\python.exe -c "import setuptools,                           tokenize;__file__='c:\\users\\mgarrett\\appdata\\local\\temp\\pip_build_mgarrett\\lxml\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\mgarrett\appdata\local\temp\pip-7wgh3w-record\install-record.txt --single-version-externally-managed --compile failed with error code 1 in c:\users\mgarrett\appdata\local\temp\pip_build_mgarrett\lxml
Exception information:
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\pip\basecommand.py", line 122, in main
    status = self.run(options, args)
  File "C:\Python27\lib\site-packages\pip\commands\install.py", line 283, in run
    requirement_set.install(install_options, global_options, root=options.root_path)
  File "C:\Python27\lib\site-packages\pip\req.py", line 1435, in install
    requirement.install(install_options, global_options, *args, **kwargs)
  File "C:\Python27\lib\site-packages\pip\req.py", line 706, in install
    cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
  File "C:\Python27\lib\site-packages\pip\util.py", line 697, in call_subprocess
    % (command_desc, proc.returncode, cwd))
InstallationError: Command C:\Python27\python.exe -c "import setuptools, tokenize;__file__='c:\\users\\mgarrett\\appdata\\local\\temp\\pip_build_mgarrett\\lxml\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\mgarrett\appdata\local\temp\pip-7wgh3w-record\install-record.txt --single-version-externally-managed --compile failed with error code 1 in c:\users\mgarrett\appdata\local\temp\pip_build_mgarrett\lxml

我以前安装过setuptools,所以我不确定日志文件最后指的是什么?

0 个答案:

没有答案