试图安装Scrapy - 错误:找不到'openssl.exe'

时间:2012-05-21 16:19:32

标签: python pip scrapy pyopenssl

有关如何解决此问题的任何想法?我正在使用pip在Win XP Pro SP 3机器上安装Scrapy。我在机器上安装了Python 2.7。 pyOpenSSL似乎有问题。我收到“无法找到'openssl.exe'”错误。

这是我的日志文件。由于其中的URL,我不得不将其破解。


Requirement already satisfied (use --upgrade to upgrade): Scrapy in c:\python27\lib\site-packages\scrapy-0.14.4-py2.7.egg

Requirement already satisfied (use --upgrade to upgrade): Twisted>=2.5 in c:\python27\lib\site-packages (from Scrapy)

  Downloading from URL pypi.python.org/packages/source/w/w3lib/w3lib-1.2.tar.gz#md5=f929d5973a9fda59587b09a72f185a9e (from pypi.python.org/simple/w3lib/)
  Running setup.py egg_info for package w3lib

    running egg_info
    creating pip-egg-info\w3lib.egg-info
    writing pip-egg-info\w3lib.egg-info\PKG-INFO
    writing top-level names to pip-egg-info\w3lib.egg-info\top_level.txt
    writing dependency_links to pip-egg-info\w3lib.egg-info\dependency_links.txt
    writing manifest file 'pip-egg-info\w3lib.egg-info\SOURCES.txt'
    warning: manifest_maker: standard file '-c' not found


    reading manifest file 'pip-egg-info\w3lib.egg-info\SOURCES.txt'
    writing manifest file 'pip-egg-info\w3lib.egg-info\SOURCES.txt'
  Source in c:\ray\dist\pip-1.1\build\w3lib has version 1.2, which satisfies requirement w3lib (from Scrapy)
Downloading/unpacking pyOpenSSL (from Scrapy)


  Downloading from URL pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-0.13.tar.gz#md5=767bca18a71178ca353dff9e10941929 (from pypi.python.org/simple/pyOpenSSL/)
  Running setup.py egg_info for package pyOpenSSL

    running egg_info
    creating pip-egg-info\pyOpenSSL.egg-info
    writing pip-egg-info\pyOpenSSL.egg-info\PKG-INFO
    writing top-level names to pip-egg-info\pyOpenSSL.egg-info\top_level.txt
    writing dependency_links to pip-egg-info\pyOpenSSL.egg-info\dependency_links.txt
    writing manifest file 'pip-egg-info\pyOpenSSL.egg-info\SOURCES.txt'
    warning: manifest_maker: standard file '-c' not found


    error: Could not find 'openssl.exe'

从命令python setup.py egg_info完成输出:

running egg_info

creating pip-egg-info\pyOpenSSL.egg-info

writing pip-egg-info\pyOpenSSL.egg-info\PKG-INFO

writing top-level names to pip-egg-info\pyOpenSSL.egg-info\top_level.txt

writing dependency_links to pip-egg-info\pyOpenSSL.egg-info\dependency_links.txt

writing manifest file 'pip-egg-info\pyOpenSSL.egg-info\SOURCES.txt'

warning: manifest_maker: standard file '-c' not found



error: Could not find 'openssl.exe'

Command python setup.py egg_info failed with error code 1 in C:\Ray\dist\pip-1.1\build\pyOpenSSL

Exception information:
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\pip-1.1-py2.7.egg\pip\basecommand.py", line 104, in main
    status = self.run(options, args)
  File "C:\Python27\lib\site-packages\pip-1.1-py2.7.egg\pip\commands\install.py", line 245, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "C:\Python27\lib\site-packages\pip-1.1-py2.7.egg\pip\req.py", line 1009, in prepare_files
    req_to_install.run_egg_info()
  File "C:\Python27\lib\site-packages\pip-1.1-py2.7.egg\pip\req.py", line 225, in run_egg_info
    command_desc='python setup.py egg_info')
  File "C:\Python27\lib\site-packages\pip-1.1-py2.7.egg\pip\__init__.py", line 256, in call_subprocess
    % (command_desc, proc.returncode, cwd))
InstallationError: Command python setup.py egg_info failed with error code 1 in C:\Ray\dist\pip-1.1\build\pyOpenSSL

1 个答案:

答案 0 :(得分:9)

您可以转到http://pypi.python.org/pypi/pyOpenSSL/0.13并下载Windows安装程序,然后继续进行scrapy安装。