Microsoft Visual C++ Required| Failed building wheel for Twisted Scrapy Solution
Coding Python

Error in installing Scrapy and Twisted » Instant Solution for Scrapy failed building wheel for Twisted

Is your terminal/PC is showing error like scrapy failed building wheel for twisted while installing Srapy Python modules in your PC, then I have presented an instant-awesome solution for pip install scrapy problem/error.

This problem may be too much irritating and tedious but the solution for this is too much easy and reliable. The error while installing scrapy is something similar to this.

building ‘twisted.test.raiser’ extension error: Microsoft Visual C++ 14.0 is required. Get it with “Microsoft Visual C++ Build Tools”: —————————————- ERROR: Failed building wheel for Twisted Running clean for Twisted Failed to build Twisted Installing collected packages: Twisted, scrapy Running install for Twisted … error

Don’t worry I have written two easy, perfect and less time-consuming solution.

And one thing to be remembered

Note: Be sure that solution no.2  for twisted/scrapy error’s will 100% work for everybody on this planet.

Apply any one solution and get rid of failed building wheel for Twisted Scrapy error.

Things to remember:

  • Stay calm, don’t panic! It’s super easy to solve this scrapy or twisted installing error
  • Never waste your time and computer resource to install Microsoft Visual C++ Build Tools to solve this error
  • Run your terminal/command prompt as administrator

Let’s solve this pip install scrapy error:

Solution for Scrapy failed building wheel for Twisted

Step 1: Try installing pip install Twisted

You may solve this error by installing Twisted manually. In many cases, this works. If this works Hooray…


But if not, do not stuck with it. You can recognize the error while installing Twisted by this kinda error message.

Error in Scrapy failed building wheel for Twisted
Microsoft Visual C++ Error while installing Twisted

Initially this appears making you hopeful,

>>> pip install Twisted
Collecting Twisted
Using cached Twisted-20.3.0.tar.bz2 (3.1 MB)

But after some time it may break you exception, like this…

ERROR: Command errored out with exit status 1: command: ‘c:\program files (x86)\python38-32\python.exe’ -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘C:\Users\Codie Bishwas\AppData\Local\Temp\pip-install-_gg11jby\Twisted\'”‘”‘; file='”‘”‘C:\Users\Codie Bishwas\AppData\Local\Temp\pip-install-_gg11jby\Twisted\'”‘”‘;f=getattr(tokenize, ‘”‘”‘open'”‘”‘, open)(file);‘”‘”‘\r\n'”‘”‘, ‘”‘”‘\n'”‘”‘);f.close();exec(compile(code, file, ‘”‘”‘exec'”‘”‘))’ bdist_wheel -d ‘C:\Users\Codie Bishwas\AppData\Local\Temp\pip-wheel-2ea97vrf’ cwd: C:\Users\Codie Bishwas\AppData\Local\Temp\pip-install-_gg11jby\Twisted\ Complete output (947 lines)

And the last error message will be this…

building ‘twisted.test.raiser’ extension error: Microsoft Visual C++ 14.0 is required. Get it with “Microsoft Visual C++ Build Tools”: —————————————- ERROR: Command errored out with exit status 1: ‘c:\program files (x86)\python38-32\python.exe’ -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘C:\\Users\\Codie Bishwas\\AppData\\Local\\Temp\\pip-install-_gg11jby\\Twisted\\'”‘”‘; __file__='”‘”‘C:\\Users\\Codie Bishwas\\AppData\\Local\\Temp\\pip-install-_gg11jby\\Twisted\\'”‘”‘;f=getattr(tokenize, ‘”‘”‘open'”‘”‘, open)(__file__);‘”‘”‘\r\n'”‘”‘, ‘”‘”‘\n'”‘”‘);f.close();exec(compile(code, __file__, ‘”‘”‘exec'”‘”‘))’ install –record ‘C:\Users\User_Name\AppData\Local\Temp\pip-record-x1lnjgso\install-record.txt’ –single-version-externally-managed –compile –install-headers ‘c:\program files (x86)\python38-32\Include\Twisted’ Check the logs for full command output.

As I told you, don’t be attached to this error. Move forward and apply the second step, this will work 100%.

Step 2: Try installing Twisted manually via wheel (.whl)

This method will hundred-percent help you. This is the pure solution for Scrapy failed building wheel for Twisted.

  1. Go to this link Twisted wheel(.whl) download.
  2. Download the appropriate version and binary of the wheel for you. (Be careful while choosing the correct version and binary of Twisted)
  3. Calmly, wait for until accomplishment of Twisted .whl download. It won’t take much time.
  4. Now open the directory where Twisted latest .whl in your command prompt
  5. Run this command on your pc
pip install YourTwistedFileName_WithCorrectVersion&Binary.whl

After downloading Twisted_Version.whl, do these steps:

How to install Twisted via wheel (.whl) file?

  • Go to the source directory where the .whl the file is located in File Explorer (i.e. C:\Users_USERNAME_\Downloads)
  • Right-click on the directory(folder)
  • Click on Open PowerShell window here
  • Run this command on your pc
    pip install Twisted_Version.whl
Source directory for Twisted-20.3.0-cp38-38-win32.whl
Source directory for Twisted-20.3.0-cp38-38-win32.whl

OR, use this command in CMD

cd C:\Users\_USERNAME_\Downloads
pip install Twisted-_VERSIONNAME_.whl

For me the version of Twisted is Twisted-20.3.0-cp38-38-win32.whl. So, I’ll be using the command like

pip install Twisted-20.3.0-cp38-38-win32.whl

Note: The error may appear if you have chosen the wrong version of Twisted. To check if the version of Twisted if correct or not, you first need to check the binary of Python installed. For me, it’s 32-bit Python Binary. So, I have chosen the 32-bit of Twisted wheel.

When you type pip install Twisted-DownloadsVersion.whl in your Command Prompt then you will see this message initially which says that the Successfully installed Twisted-Version.

Successfully installed Twisted-20.3.0
Successfully installed Twisted and now you can try pip install scrapy.

Hooray!!! The error for scrapy failed building wheel for Twisted is now solved. Now you can continue to download others module related to Twisted.

Now type pip install scrapy in CMD and see the magic. BOOM.

Keep learning Python, because it’s #Beneficial_Python.


Happy Pythoning…

5 3 votes
Article Rating
Notify of
Most Voted
Newest Oldest
Inline Feedbacks
View all comments

Thanks man,that was of great help!:)


you’re hilarious!

Ucco 24

Thanks Its working


WoW !!!! you helped me a lot!!!


This worked. Thanks!

[…] Then i searched this Error on Google then, I saw an Answer of this Question and The Answer was to pip install channels. Then i install it, AND while installing it , An main/Big Error is raised This Error. […]

Would love your thoughts, please comment.x