96. python version 3.6 required, which was not fount in the registry (install scrapy in python3.6), fountscrapy

Source: Internet
Author: User

96. python version 3.6 required, which was not fount in the registry (install scrapy in python3.6), fountscrapy

Problems encountered during scrapy Installation

Environment: win10 (64-bit), Python3.6 (64-bit)

Install scrapy:

1. Install wheel (after installation, the software can be installed through the wheel file)

pip3 install wheel

2. Install lxml and pyopenssl

Lxml: the Library for parsing XML, which is very powerful. It is used for crawling BS4, selenium, and XPATH.

pip3 install lxmlpip3 install pyopenssl

3. Install pywin32

Download URL: https://sourceforge.net/projects/pywin32/files/pywin32/

Download 64-bit or 32-bit python based on your own version (Note: The pywin32 version follows the Python version, that is, if the win is 64-bit, but the python version is 32-bit, the pywin32 version must be 32-bit, (not related to win ))

Double-click installation (the following error may be caused by registry issues)

After installing a third-party library, the following error occurs: Python version 3.6 required, which was not found in the registry.

Create a file register. py with the following content. then execute the script.

import sysfrom winreg import *# tweak as necessaryversion = sys.version[:3]installpath = sys.prefixregpath = "SOFTWARE\\Python\\Pythoncore\\%s\\" % (version)installkey = "InstallPath"pythonkey = "PythonPath"pythonpath = "%s;%s\\Lib\\;%s\\DLLs\\" % (    installpath, installpath, installpath)def RegisterPy():    try:        reg = OpenKey(HKEY_CURRENT_USER, regpath)    except EnvironmentError as e:        try:            reg = CreateKey(HKEY_CURRENT_USER, regpath)            SetValue(reg, installkey, REG_SZ, installpath)            SetValue(reg, pythonkey, REG_SZ, pythonpath)            CloseKey(reg)        except:            print("*** Unable to register!")            return        print("--- Python", version, "is now registered!")        return    if (QueryValue(reg, installkey) == installpath and                QueryValue(reg, pythonkey) == pythonpath):        CloseKey(reg)        print("=== Python", version, "is already registered!")        return    CloseKey(reg)    print("*** Unable to register!")    print("*** You probably have another Python installation!")if __name__ == "__main__":    RegisterPy()

4. Download twisted

Download the twisted wheel file: http://www.lfd.uci.edu /~ Gohlke/pythonlibs/

Pip3 install download directory \ Twisted-17.9.0-cp36-cp36m-win_amd64.whl

An error may be reported during installation.

error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools

Visual C ++ Build Tools 2015 must be installed on the computer

5. Install scrapy

pip3 install scrapy

6. Success

 

This is a problem encountered when installing scrapy today. I will post a detailed article about scrapy tomorrow. If you are interested, please pay attention to it.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.