In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "how to install Scrapy and build its environment under win10". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to install Scrapy and build its environment under win10".
Say in front.
My system is currently win10 64-bit scrapy and currently only supports python27
Before installing scrapy, I installed visual studio community and downloaded it on MS's official website.
There are simple tutorials on Scrapy's official website.
Https://scrapy-chs.readthedocs.org/zh_CN/0.24/intro/install.html
Pay attention to different installation methods of suffix names
A. exe click directly to install
Pip install file_name for b.msi files
C. Egg file cmd command line go to the directory where the .egg file is located, pip install file_name
Change the d.whl file to .zip and copy the shortest unzipped file to the Lib folder in the python27 installation location.
-the specific installation method is as follows-
(1) install Python 2. 7 (2) Python Package: pip and setuptools.
Pip now depends on setuptools, and if it is not installed, setuptools will be installed automatically.
After installing Python, follow these steps before installing Scrapy:
# after installing Python, install Scrapy through the following steps:
Add theC: python27Scripts and C:python27 folders to the system path by adding those directories to the PATH environment variable from theControl Panel.
# add C:/python27/Scripts and C:/python27 to the washing system environment variables
Some binary packages that Scrapy depends on (like Twisted, lxml and pyOpenSSL) require a compiler available to install, and fail if you don't have Visual Studio installed. You can find Windows installers for those in the following links. Make sure you respect your Python version and Windows architecture.
# Scrapy requires lxml and pyOpenSSL Twisted when required. If you do not have Visual Studio installed, you can find a Windows architecture that is consistent with your python version and system version.
-build a scrapy environment-
3. Lxml.
Most Linux distributions come with lxml. If it is missing, please see http://lxml.de/installation.html [the library written by python is to be installed under windows]
4. OpenSSL.
All systems are available except Windows (see the platform installation guide).
1. # install OPENSSL by following these steps
Go to Win32 OpenSSL page # visit Win32 OpenSSL official website
Download OpenSSL for your Windows and architecture (the regular version, not the light one)
# download and install OPENSSL on your system
Add the c:openssl-win32bin (or similar) directory to your PATH, the same way you added python27 in the first step "in the first step
# add the directory where OPENSSL is located to your system environment variable in the same way as adding Python environment variable
(5) Twisted installation Twisted installation also requires Zope.Interface, PyWin32 and PyOpenSSL
Http://twistedmatrix.com/trac/wiki/Downloads
All three needed can be downloaded, but the Twisted click is garbled and there is no way to download it. I found an alternative link in this place.
Https://pypi.python.org/packages/2.7/T/Twisted/Twisted-13.0.0.win32-py2.7.msi
(6) Scrapy installation
Through the steps above, your system already has the environment to install Scrapy, and then start installing Scrapy with the following command:
Pip install Scrapy
Check scrapy version Scrapy version after installation is complete
Then Scrapy can run on the windows system.
Screenshot as a souvenir
Thank you for your reading, the above is the content of "how to install Scrapy and build its environment under win10". After the study of this article, I believe you have a deeper understanding of how to install Scrapy and build its environment under win10. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 202
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.