Azure / Azure/Azure-Functions

Ensure MSVC versions matching Python compiler are available

Open
#772 2 comments 0 reactions 0 assignees View on GitHub
lang-Python wontfix
Dominant language
PowerShell
Stars
1.1k
Forks
215
Avg merge
4h 2m
Merged PRs (30d)
1

Description

tl;dr; Make sure _MSVC_VER=9.0 & 10.0 are available to support Python2.7, 3.4 module installs. (3.6 requires v14 which is already there)

For Windows platform only. Runtime v1, Consumption Plan.

This is all in the context of trying to get a working install of spaCy (https://github.com/explosion/spaCy).

A number of Python modules require compiler support to install. The compiler version must match the one the python interpreter was compiled with. See here for those versions: https://wiki.python.org/moin/WindowsCompilers

Repro is simple, from a Kudo console, assuming you're in a virtualenv

```
python -m pip install spacy
```

For vanilla python27 you'll see lots of errors relating to insecure platform which can be safely ignored but the interesting one here is:

```
building 'murmurhash.mrmr' extension
error: Microsoft Visual C++ 9.0 is required (Unable to find vcvarsall.bat). Get it from http://aka.ms/vcpython27
```

So one of spaCy's deps requires a compiler to install. The standard response to this is to install from wheels which does work for all of spaCy's dependencies but, crucially, doesn't for spaCy itself. The system just appears to hang and eventually reset itself. Even with verbose flag for install there is no clue what's going on and eventually you just end up back at what looks like a fresh console with, kicked out of your venv without spaCy having been installed. Maybe a watchdog killed a CPU intensive process that had been running 'too long' ?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.