无法在Windows 64位上安装Scrapy [英] Trouble installing Scrapy on Windows 64 bit

查看:97
本文介绍了无法在Windows 64位上安装Scrapy的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Windows 7 64位计算机上安装Scrapy.我首先按照Scrapy文档中的说明进行操作.

I am attempting to install Scrapy on my Windows 7 64 bit machine. I started by following the instructions here on Scrapy's documentation.

我起身直到命令'pip install Scrapy'.一切正常,除了找不到"libxml2":

I got up until the command 'pip install Scrapy'. Everything works except that it cannot find 'libxml2':

Could not find function xmlCheckVersion in library libxml2. Is libxml2     installed?

然后我访问了该网站以获取libxml2的二进制文件:

I then visited this website to get the binaries of libxml2:

ftp://ftp.zlatkovic.com/libxml/64bit/

libxml2的安装说明在此处: https://www.zlatkovic.com /libxml.en.html

The instructions for installation of libxml2 are here: https://www.zlatkovic.com/libxml.en.html

他们声明您应该解压缩二进制文件并将BIN文件夹的内容放在诸如C:\WINDOWS的路径中.我做到了但是,在尝试再次安装Scrapy之后,我仍然收到相同的错误.有什么我想念的吗?

They state that you should unzip the binaries and place the contents of the BIN folder in a path such as C:\WINDOWS. I did this. However, after attempting to install Scrapy again, I continue to receive the same error. Is there something I am missing?

推荐答案

只需在Windows10 x64上安装Scrapy.它仅在Windows上随Python 2.7一起安装.我从此处使用了tututial.

Just installled Scrapy on Windows10 x64. It installs only with Python 2.7 on Windows. I used tutotial from here.

  1. 从官方网站下载并安装Python 2.7
  2. 具有完全管理员权限的打开命令提示符(cmd)并键入:

  1. Download from the official site and install Python 2.7
  2. Open Command promt (cmd) with full admin permissions and type:

c:\python27\python.exe c:\python27\tools\scripts\win_add2path.py 然后按Enter

安装安装OpenSSL(对不起,由于信誉低而无法附加链接).将其下载到某个文件夹,例如C:\ Python27 \ Scripts并从此处执行命令:pip install pyOpenSSL-16.0.0-py2.py3-none-any.whl(文件名不能相同)

Install OpenSSL (sorry, can't attach link because of small reputation). Download it to some folder, e.g. C:\Python27\Scripts and execute command from there: pip install pyOpenSSL-16.0.0-py2.py3-none-any.whl (the name of file could not be the same)

像以前的文件一样安装lxml:pip install lxml-3.6.0-cp27-cp27m-win32.whl

Install lxml just like previous file: pip install lxml-3.6.0-cp27-cp27m-win32.whl

安装Pywin32

最后,安装Scrapy-pip install Scrapy

And finally, install Scrapy - pip install Scrapy

可以建议下载并安装x32体系结构(即使您具有x64系统)所需的所有软件.

Can recommend to download and install all needed soft for x32 architecture (even if you have x64 system).

这篇关于无法在Windows 64位上安装Scrapy的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆