无法在windows 7 64位系统上安装Scray

2024-10-02 08:18:11 发布

您现在位置:Python中文网/ 问答频道 /正文

我有Windows7 64位操作系统。我正在安装Scrapy。我已经安装了所有的先决条件,但无法安装它的pip或容易安装。我遵循这个: http://doc.scrapy.org/en/latest/intro/install.html

日志文件显示:

C:\Python27\Scripts\pip run on 02/06/14 22:46:20
Requirement already satisfied (use --upgrade to upgrade): scrapy in c:\python27\lib\site-packages\scrapy-0.22.0-py2.7.egg
Requirement already satisfied (use --upgrade to upgrade): Twisted>=10.0.0 in c:\python27\lib\site-packages (from scrapy)
Requirement already satisfied (use --upgrade to upgrade): w3lib>=1.2 in c:\python27\lib\site-packages (from scrapy)
Requirement already satisfied (use --upgrade to upgrade): queuelib in c:\python27\lib\site-packages (from scrapy)
Requirement already satisfied (use --upgrade to upgrade): lxml in c:\python27\lib\site-packages (from scrapy)
Downloading/unpacking pyOpenSSL (from scrapy)
  Getting page https
.
.
.
.
creating build

creating build\lib.win-amd64-2.7

creating build\lib.win-amd64-2.7\OpenSSL

copying OpenSSL\__init__.py -> build\lib.win-amd64-2.7\OpenSSL

copying OpenSSL\tsafe.py -> build\lib.win-amd64-2.7\OpenSSL

copying OpenSSL\version.py -> build\lib.win-amd64-2.7\OpenSSL

creating build\lib.win-amd64-2.7\OpenSSL\test

copying OpenSSL\test\__init__.py -> build\lib.win-amd64-2.7\OpenSSL\test

copying OpenSSL\test\util.py -> build\lib.win-amd64-2.7\OpenSSL\test

copying OpenSSL\test\test_crypto.py -> build\lib.win-amd64-2.7\OpenSSL\test

copying OpenSSL\test\test_rand.py -> build\lib.win-amd64-2.7\OpenSSL\test

copying OpenSSL\test\test_ssl.py -> build\lib.win-amd64-2.7\OpenSSL\test

running build_ext

building 'OpenSSL.crypto' extension

Traceback (most recent call last):

  File "<string>", line 1, in <module>

  File "c:\users\manav\appdata\local\temp\pip_build_Manav\pyOpenSSL\setup.py", line 221, in <module>

    ...  and much more ;)"""
.
.
.
  File "C:\Python27\lib\distutils\msvc9compiler.py", line 299, in query_vcvarsall

    raise ValueError(str(list(result.keys())))

ValueError: [u'path']

----------------------------------------
Cleaning up...
  Removing temporary dir c:\users\manav\appdata\local\temp\pip_build_Manav...
Command C:\Python27\python.exe -c "import setuptools, tokenize;__file__='c:\\users\\manav\\appdata\\local\\temp\\pip_build_Manav\\pyOpenSSL\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\manav\appdata\local\temp\pip-806nz0-record\install-record.txt --single-version-externally-managed --compile failed with error code 1 in c:\users\manav\appdata\local\temp\pip_build_Manav\pyOpenSSL
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 279, in run
    requirement_set.install(install_options, global_options, root=options.root_path)
  File "C:\Python27\lib\site-packages\pip\req.py", line 1380, in install
    requirement.install(install_options, global_options, *args, **kwargs)
  File "C:\Python27\lib\site-packages\pip\req.py", line 699, 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\\manav\\appdata\\local\\temp\\pip_build_Manav\\pyOpenSSL\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\manav\appdata\local\temp\pip-806nz0-record\install-record.txt --single-version-externally-managed --compile failed with error code 1 in c:\users\manav\appdata\local\temp\pip_build_Manav\pyOpenSSL  File "C:\Python27\lib\distutils\msvc9compiler.py", line 299, in query_vcvarsall

    raise ValueError(str(list(result.keys())))

ValueError: [u'path']

----------------------------------------
Cleaning up...
  Removing temporary dir c:\users\manav\appdata\local\temp\pip_build_Manav...
Command C:\Python27\python.exe -c "import setuptools, tokenize;__file__='c:\\users\\manav\\appdata\\local\\temp\\pip_build_Manav\\pyOpenSSL\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\manav\appdata\local\temp\pip-806nz0-record\install-record.txt --single-version-externally-managed --compile failed with error code 1 in c:\users\manav\appdata\local\temp\pip_build_Manav\pyOpenSSL
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 279, in run
    requirement_set.install(install_options, global_options, root=options.root_path)
  File "C:\Python27\lib\site-packages\pip\req.py", line 1380, in install
    requirement.install(install_options, global_options, *args, **kwargs)
  File "C:\Python27\lib\site-packages\pip\req.py", line 699, 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\\manav\\appdata\\local\\temp\\pip_build_Manav\\pyOpenSSL\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\manav\appdata\local\temp\pip-806nz0-record\install-record.txt --single-version-externally-managed --compile failed with error code 1 in c:\users\manav\appdata\local\temp\pip_build_Manav\pyOpenSSL

谢谢你


Tags: installpipinpybuildlibpackageslocal
1条回答
网友
1楼 · 发布于 2024-10-02 08:18:11

使用Python&windows,您会发现许多类似的问题。(我知道因为我知道)

一种解决方案是下载windows二进制文件中的OpenSSL 我想它就在这里 http://slproweb.com/products/Win32OpenSSL.html

当然,你也可以用google搜索“package name+windows binary”,如果这样做还不够的话。在

祝你好运。在

相关问题 更多 >

    热门问题