How to use pip to install packages using the MinGW-w64 compiler on Windows 7?

I use Python 3.4.1 64 bit on Windows 7. When I tried to install scikit-image using pip, I encountered a popular problem: "could not find vcvarsall.bat". I made sure that I had both Visual Studio 2009 and 2010 redistributable installed and VS90COMNTOOLS and VS100COMNTOOLS added to the environment variable. But it did not help. The same error persists.

Then I decided to try MinGW-w64. So I installed it. Add the bin folder to PATH. Then create a distutils.cfg file that has this code

[Build] compiler = mingw-w64 

Then I get this error message: β€œI don’t know how to compile C / C ++ code on the nt platform with the mingw-w64 compiler. How can I solve this?

PS I know that I can download binary files from Christophe Golke's page, but I still would like to know how to do it myself.

+7
python pip distutils
source share
4 answers

You can try to install an unofficial whl for Windows listed here http://www.lfd.uci.edu/~gohlke/pythonlibs/

You have a link and search for "scikit-image"

0
source share

An inaccurate answer to your question, but you can take a look at Anaconda . This allows you to install packages without compiling them and already comes with several useful packages, such as NumPy, Pandas, SciPy, Matplotlib and Jupyter.

You can install a scikit image with one command:

 conda install scikit-image 

Or update it:

 conda update scikit-image 

I always recommend Anaconda to anyone who starts using Python for Windows - it relieves you of many headaches.

0
source share

You can try installing scikit-image from a command prompt from Windows: Installing a Scikit image .

0
source share

All I did to install using pip was on the command line and enter the following. In my example, I am installing numpy, but you can use it to install what you need.

 >pip install numpy 

Just. Hope this helps!

0
source share

All Articles