Closed GoogleCodeExporter closed 9 years ago
Will look into it. We need to consider machines where VS is installed.
Original comment by grizzly.nyo
on 19 Aug 2011 at 1:16
The problem: Cython finds the Visual C++ compiler instead of MinGW.
The proposed solution: change the default compiler for the entire Python
installation to MinGW, and change the users PATH. Is this a permanent change?
Or only during installation?
If these are permanent changes, they will break other packages which expect the
Visual C++ compiler, which is the default for Python on Windows. Using the
--compiler option to setup.py would be better than changing distutils.cfg IMHO.
Original comment by koenvand...@gmail.com
on 5 Sep 2011 at 12:53
Let's keep Cython's defaults unmodified.
Original comment by grizzly.nyo
on 12 Oct 2011 at 10:09
See http://wiki.cython.org/InstallingOnWindows ... I just added a section at
the start describing how to set the compiler when you call Cython. (I did not
have to modify the PATH when I did this.) This can be done totally within an
IPython---no command lines, no configuration files---which I think is better
for users who are not experienced programmers.
That said, I find it hard to believe that it's completely impossible, during
the installation process, to set a default compiler for Cython that's actually
installed.
Original comment by steven.b...@gmail.com
on 17 Jun 2012 at 2:25
Is this why `pip install line_profiler` doesn't work?
I get "error: Unable to find vcvarsall.bat"
Original comment by omegat...@gmail.com
on 8 May 2013 at 1:59
Following these steps fixed it:
3) Add the path of the compiler to your PATH environment variable (eg:
c:\mingw\bin should appear in the PATH)
4) Now open the prompt and check if the compiler is correctly installed (gcc
--version should be properly working)
5) It is very useful to tell distutils to use mingw. To achieve this, create a
file named distutils.cfg (if you already don't have it) in your
\PythonXY\Lib\distutils and add to it the following lines:
[build]
compiler = mingw32
Dunno why it works fine by default on one machine's pythonxy but not the other.
Original comment by omegat...@gmail.com
on 8 May 2013 at 2:05
Original issue reported on code.google.com by
Kamha...@googlemail.com
on 1 Jun 2011 at 5:46