ValueError: Unknown MS Compiler version 1900
I made the following changes and it worked for me with the following configurations.
- OS : Win 7 Prof. SP1 64 bit
- CPython 3.6 , 64 Bit
- Mingw 64 (x86_64-7.1.0-posix-seh-rt_v5-rev0)
- Cython 0.25.2
I did the following
- Add mingw in the PATH variable (
C:\mingw-w64\x86_64-7.1.0-posix-seh-rt_v5-rev0\mingw64\bin
for me) - Test by opening command line and command
gcc
works ( I have no other compilers) - Create
distutils.cfg
inC:\Python36\Lib\distutils
Add lines in that file:
[build]
compiler = mingw32Manually applying this patch
- Manually downloading the file
vcruntime140.dll
and putting it inC:\Python36\libs
python 3.5 scikit-learn developer version error: Unable to find vcvarsall.bat VS 2015
The answer is connected with this issue, my fault was that I downloaded C++ Common Tools as a separate package, but you need to reinstall VS and select "Common Tools For Visual Studio 2015"
Compiling with cython and mingw produces gcc: error: unrecognized command line option '-mno-cygwin'
It sounds like GCC 4.7.0 has finally removed the deprecated -mno-cygwin
option, but distutils has not yet caught up with it. Either install a slightly older version of MinGW, or edit distutils\cygwinccompiler.py
in your Python directory to remove all instances of -mno-cygwin
.
Related Topics
How to Remove Leading Whitespace in Python
Login to Website Using Urllib2 - Python 2.7
Pandas: Resample Timeseries with Groupby
Passing a Data Frame Column and External List to Udf Under Withcolumn
Finding a Substring Within a List in Python
Convert a Python Dict to a String and Back
Format Strings VS Concatenation
Appending a Dictionary to a List in a Loop
Filedialog, Tkinter and Opening Files
How to Create a Numpy Array of Arbitrary Length Strings
Putting Many Python Pandas Dataframes to One Excel Worksheet
How to Get Char from String by Index
Python: Excluding Modules Pyinstaller
Flask App: Update Progress Bar While Function Runs