python Scrapy创建项目出错,执行scrapy startproject test 出错;

Traceback (most recent call last):
File "d:\users\july_whj\lib\runpy.py", line 174, in run_module_as_main
"
_main__", fname, loader, pkg_name)
File "d:\users\july_whj\lib\runpy.py", line 72, in run_code
exec code in run_globals
File "D:\Users\July_whj\Scripts\scrapy.exe\
_main__.py", line 5, in
File "d:\users\july_whj\lib\site-packages\scrapy\cmdline.py", line 9, in
from scrapy.crawler import CrawlerProcess
File "d:\users\july_whj\lib\site-packages\scrapy\crawler.py", line 7, in
from twisted.internet import reactor, defer
File "d:\users\july_whj\lib\site-packages\twisted\internet\reactor.py", line 38, in
from twisted.internet import default
File "d:\users\july_whj\lib\site-packages\twisted\internet\default.py", line 56, in
install = _getInstallFunction(platform)
File "d:\users\july_whj\lib\site-packages\twisted\internet\default.py", line 50, in _getInstallFunction
from twisted.internet.selectreactor import install
File "d:\users\july_whj\lib\site-packages\twisted\internet\selectreactor.py", line 18, in
from twisted.internet import posixbase
File "d:\users\july_whj\lib\site-packages\twisted\internet\posixbase.py", line 18, in
from twisted.internet import error, udp, tcp
File "d:\users\july_whj\lib\site-packages\twisted\internet\tcp.py", line 28, in
from twisted.internet._newtls import (
File "d:\users\july_whj\lib\site-packages\twisted\internet_newtls.py", line 21, in
from twisted.protocols.tls import TLSMemoryBIOFactory, TLSMemoryBIOProtocol
File "d:\users\july_whj\lib\site-packages\twisted\protocols\tls.py", line 63, in
from twisted.internet._sslverify import _setAcceptableProtocols
File "d:\users\july_whj\lib\site-packages\twisted\internet_sslverify.py", line 38, in
TLSVersion.TLSv1_1: SSL.OP_NO_TLSv1_1,
AttributeError: 'module' object has no attribute 'OP_NO_TLSv1_1'
图片说明

1个回答

很奇怪,这个应该不能创建名字为test的scrapy项目吧?
个人尝试了一下
在python3.6下,无论是linux平台还是windows平台都不能创建名字为test的scrapy项目,
而在python2.7下,可以创建名为test的scrapy项目,
刚刚开始学习,不太懂。希望各路大神赐教
图片说明

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐