萌新一枚,下载Scrapy库时失败,按照网上的方法去下载Twisted-20.3.0-cp38-cp38-win_amd64.whl文件,执行后立刻出现
ERROR: Exception:
Traceback (most recent call last):
File “C:\Users\Dell\AppData\Roaming\Python\Python38\site-packages\pip_internal\cli\base_command.py”, line 216, in _main
status = self.run(options, args)
File “C:\Users\Dell\AppData\Roaming\Python\Python38\site-packages\pip_internal\cli\req_command.py”, line 182, in wrapper
return func(self, options, args)
File “C:\Users\Dell\AppData\Roaming\Python\Python38\site-packages\pip_internal\commands\install.py”, line 324, in run
requirement_set = resolver.resolve(
File “C:\Users\Dell\AppData\Roaming\Python\Python38\site-packages\pip_internal\resolution\legacy\resolver.py”, line 183, in resolve
discovered_reqs.extend(self._resolve_one(requirement_set, req))
File “C:\Users\Dell\AppData\Roaming\Python\Python38\site-packages\pip_internal\resolution\legacy\resolver.py”, line 391, in _resolve_one
dist = abstract_dist.get_pkg_resources_distribution()
File “C:\Users\Dell\AppData\Roaming\Python\Python38\site-packages\pip_internal\distributions\wheel.py”, line 29, in get_pkg_resources_distribution
with ZipFile(self.req.local_file_path, allowZip64=True) as z:
File “c:\program files\python38\lib\zipfile.py”, line 1269, in init
self._RealGetContents()
File “c:\program files\python38\lib\zipfile.py”, line 1336, in _RealGetContents
raise BadZipFile(“File is not a zip file”)
zipfile.BadZipFile: File is not a zip file
已经试了好几种办法都没有成效,求大佬帮帮忙