0

I have been trying to pip install crossbar on my virtual environment in Windows 10 but I keep getting:

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

I am using Python3.7 and Django2.1

I have installed the requirement and have restarted my system severally but still getting the same error. Pip has been upgraded too.

Here is the list of programs install from my Control Panel:

Control Panel

And here is the Command Prompt error (again)Command Prompt

I have equally installed Microsoft Visual C++ 2017 Redistributable, both (x86) and (x64) but still did not work.

Yax
  • 2,127
  • 5
  • 27
  • 53
  • Are you using the 32-bit version of Python 2.7.x as stated in the [documentation](https://crossbar.io/docs/Installation-on-Windows/#installing-the-dependencies)? – Selcuk Aug 31 '18 at 07:33
  • No. I am using Python3.7 and Django 2.1 – Yax Aug 31 '18 at 07:35
  • @VTT that has been installed too. It is the first in the picture of Control Panel programs attached in the question. – Yax Aug 31 '18 at 07:45
  • Are they actually available when you run this script? Maybe you need to launch it in properly set up console? Try running this script inside of Visual Studio x86 native tools command prompt. You can type `cl.exe /?` to verify that compiler is available. – user7860670 Aug 31 '18 at 07:48
  • @VTT that gives error `'cl.exe' is not recognized as an internal or external command, operable program or batch file.`. – Yax Aug 31 '18 at 07:53
  • Then try running this from x86 native tools command prompt – user7860670 Aug 31 '18 at 08:09
  • Still the same error – Yax Aug 31 '18 at 08:21
  • install the Build tools not the redist files: https://visualstudio.microsoft.com/visual-cpp-build-tools/ – magicandre1981 Aug 31 '18 at 09:32
  • @Yax Read the documentation again, crossbar.io is only compatible with Python 2.7 32-bit. – Selcuk Aug 31 '18 at 10:15
  • @magicandre1981 if you look at the first image, you can see it is the first in the programs installed. – Yax Aug 31 '18 at 18:18

2 Answers2

0

The redistributable files are used to run software which someone else built. You need the build tools themselves. Either get them as part of Visual Studio (which is free for personal use) or as part of the Microsoft Visual C++ Build Tools.

The current toolset is 14.0/14.1 corresponding to VS2015/2017.

MSalters
  • 173,980
  • 10
  • 155
  • 350
0

Try upgrading setuptools

pip install --upgrade setuptools

Original answer