最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【已解决】安装Scrapy过程中出错:error: Could not find ‘openssl.exe’

Scrapy crifan 5843浏览 0评论

【问题】

安装scrapy过程中出错:

E:\Dev_Tools\python\Scrapy>pip install Scrapy
...
Downloading/unpacking pyOpenSSL (from Scrapy)
  Downloading pyOpenSSL-0.13.tar.gz (250kB): 250kB downloaded
  Running setup.py egg_info for package pyOpenSSL

    error: Could not find 'openssl.exe'
    Complete output from command 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:\users\admini~1\appdata\local\temp\pip-build\pyOpenSSL
Storing complete log in C:\Users\Administrator\pip\pip.log

【解决过程】

1.参考之前在

【已解决】安装Scrapy过程中出错:ERROR: ‘xslt-config’ 不是内部或外部命令,也不是可运行的程序 或批处理文件。

所遇到的,试了试去打开

http://pypi.python.org/simple/openssl

但是url无效。

2. 又参考:

Trying to install Scrapy – error: Could not find ‘openssl.exe’

http://pypi.python.org/pypi/pyOpenSSL/0.13下载

pyOpenSSL-0.13.winxp32-py2.7.msi

安装完毕,再去重新安装scrapy,结果还是同样的错误:

Downloading/unpacking pyOpenSSL (from Scrapy)
  Running setup.py egg_info for package pyOpenSSL

    error: Could not find 'openssl.exe'
    Complete output from command python setup.py egg_info:
    running 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

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:\users\admini~1\appdata\local\temp\pip-build\pyOpenSSL
Storing complete log in C:\Users\Administrator\pip\pip.log

3. 很奇怪。感觉也许是,刚才安装openssl的时候,默认选择的是从registry中找python路径的,估计没找到正确的。

所以现在去安装路径:

E:\dev_install_root\Python27\Lib\site-packages

也没有找到openssl。

4. 重新运行pyOpenSSL-0.13.winxp32-py2.7.msi

删除掉刚安装的,再重新安装,然后选择路径是选择成自己设置的路径:

pyopenssl choose install dir

然后安装完毕后。

再去重新试试scrapy是否可以识别了。

结果,貌似的确解决了这个openssl的问题了。

【总结】

pyOpenssl安装文件,貌似无法正确检测到pyhon 2.7的安装路径,需要在安装时,手动选择才可以。

转载请注明:在路上 » 【已解决】安装Scrapy过程中出错:error: Could not find ‘openssl.exe’

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

网友最新评论 (1)

    93 queries in 0.197 seconds, using 22.11MB memory