Tag Archives: Twisted

Troubleshooting the installation of twisted

The error is not a supported wheel on this platform

solution

1.

https://www.lfd.uci.edu/ ~gohlke/pythonlibs/#twisted

Download the corresponding configuration file, such as twisted ‑ 18.7.0 ‑ cp36 ‑ cp36m ‑ win_Amd64.whl (where CP is followed by Python version, win_AMD64 stands for 64 bit)

 

2 . Run in Python

import pip
print(pip.pep425tags.get_supported())

Get

[('cp35', 'none', 'win_amd64'), ('py3', 'none', 'win_amd64'), ('cp35', 'none', '
any'), ('cp3', 'none', 'any'), ('cp34', 'none', 'any'), ('cp33', 'none', 'any'),
('cp32', 'none', 'any'), ('cp31', 'none', 'any'), ('cp30', 'none', 'any'), ('py
35', 'none', 'any'), ('py3', 'none', 'any'), ('py34', 'none', 'any'), ('py33', '
none', 'any'), ('py32', 'none', 'any'), ('py31', 'none', 'any'), ('py30', 'none'
, 'any')]

3.

Modify the corresponding file name according to the above prompts, such as:

Twisted‑18.7.0‑cp36‑cp36m‑win_amd64.whl

Change to ↓↓↓↓↓↓↓↓↓↓↓

Twisted‑18.7.0‑cp36‑none‑any.whl

CMD run

pip install E:\Twisted‑18.7.0‑cp36‑none‑any.whl

Installation succeeded

Python PIP installs scrapy with an error of twisted

Scrapy relies on the following packages:
lxml: an efficient XML and HTML parser
w3lib: a multifunctional assistant for handling URL and web page coding
twisted: an asynchronous network framework
cryptography and pyopenssl: handling various network level security requirements
——————
1. Run PIP security first Install PIP install scrape
2. After the installation, except for the error twisted, the other dependent packages should be installed

Then download twisted by yourself. Note: it should correspond to your Python version number and the number of digits of the computer system
I use Python 37 and the system is 64 bits
https://www.lfd.uci.edu/ ~gohlke/pythonlibs/

3. After downloading, install pip. PIP install [file path] \ twisted-18.9.0-cp37-cp37m-win_AMD64. WHL
4. Run the PIP installation of scripy again for the last time to install successfully

——————
copyright notice: This article is the original article of CSDN blogger “Sagittarius 32”, which follows the CC 4.0 by-sa copyright agreement. Please attach the source link of the original text and this notice for reprint
original link: https://blog.csdn.net/sagittarius32/article/details/85345142