I'm trying to install python package from setup.py. Actually this one: http://ift.tt/2awIApQ I use python 3.6 (anaconda, built in in Visual Studio 2017)
I have Visual Studio 2017 and install MinGW:
C:\MinGW\bin>gcc --version
gcc (MinGW.org GCC-6.3.0-1) 6.3.0
Then I use:
python setup.py install
and get next error message:
error: 'thread' is not a member of 'std'
I found this mean I need to use C++11 features. Ok. But how? I tried to change file distutils.cfg in my python directory to use next compilers:
mingw32
msvc
But for msvc get another error:
error C2039: 'to_string': is not a member of 'std'
I found some information, to add -std=c++11 to use some c++11 features, but I can't understand where and how to use it! Do I need write it in python shell after install? Or in distutils.cfg? I tried both and got:
error: option -s not recognized ---> for python
error: don't know how to compile C/C++ code on platform 'nt' with 'msvc -std=c++11' compiler ---> for distutils.cfg
Aucun commentaire:
Enregistrer un commentaire