Scrapy安装说明不清楚注册表mod

时间:2014-04-13 01:10:11

标签: python scrapy

我正在使用Pip将Scrapy 0.22.2安装到Python 2.7 64位环境中。我按照相应的顺序按照here列出的说明进行操作。我已经将Python 2.7注册表导出到.txt文件并修改了内容。然而,它说

'导航到保存所述文件的位置,然后双击它以启动注册表修改'。那是一个错字吗?双击文本文件都会打开它。

道歉,如果这似乎是一个愚蠢的问题,但我以前从未做过任何注册表修改。

有关如何安装Scrapy的说明因站点而异。在安装了twisted和zope后,我尝试使用pip从PYPI安装最新版本的Scrapy,但收到以下错误消息:

Removing temporary dir c:\users\olegsa~1\appdata\local\temp\pip_build_Oleg Salenko...
Command C:\Python27\python.exe -c "import setuptools, tokenize;__file__='c:\\users\\olegsa~1\\appdata\\local\\temp\\pip_build_Oleg Salenko\\lxml\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\olegsa~1\appdata\local\temp\pip-m1ttmc-record\install-record.txt --single-version-externally-managed --compile failed with error code 1 in c:\users\olegsa~1\appdata\local\temp\pip_build_Oleg Salenko\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\\olegsa~1\\appdata\\local\\temp\\pip_build_Oleg Salenko\\lxml\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\olegsa~1\appdata\local\temp\pip-m1ttmc-record\install-record.txt --single-version-externally-managed --compile failed with error code 1 in c:\users\olegsa~1\appdata\local\temp\pip_build_Oleg Salenko\lxml

由于

1 个答案:

答案 0 :(得分:1)

.txt文件重命名为.reg,然后尝试双击它。

如果您在文件末尾没有看到文件扩展名,那么您最终可能会将其重命名为exampleFile.reg.txt,但它看起来像exampleFile.reg,因为.txt最后将隐藏1}}。为避免这种情况,make sure Windows isn't hiding extensions of known file types

或者,你可以

  1. 点击start按钮
  2. 在底部的框中​​搜索cmd
  3. 右键单击并选择Run as Administrator
  4. 弹出的终端
  5. ,输入regedit.exe C:\path\to\that\file.reg并点击<enter>
相关问题