Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python Scikit-image Install Failing Using Pip

I'm attempting to install scikit-image and am obtaining this error output message. I'm unsure how to actually display the text properly, so just a simple paste I have done.

building 'skimage.external.tifffile._tifffile' extension
    compiling C sources
    creating build\temp.win32-2.7\Release\skimage\external
    creating build\temp.win32-2.7\Release\skimage\external\tifffile
    C:\Users\Kyle\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG /arch:SSE2 -Ic:\python27\lib\site-packages\numpy\core\include -Ic:\python27\lib\site-packages\numpy\core\include -Ic:\python27\include -Ic:\python27\PC /Tcskimage\external\tifffile\tifffile.c /Fobuild\temp.win32-2.7\Release\skimage\external\tifffile\tifffile.obj
    tifffile.c
    skimage\external\tifffile\tifffile.c(75) : fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory
    error: Command "C:\Users\Kyle\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG /arch:SSE2 -Ic:\python27\lib\site-packages\numpy\core\include -Ic:\python27\lib\site-packages\numpy\core\include -Ic:\python27\include -Ic:\python27\PC /Tcskimage\external\tifffile\tifffile.c /Fobuild\temp.win32-2.7\Release\skimage\external\tifffile\tifffile.obj" failed with exit status 2
like image 625
Kyle J Avatar asked Jul 01 '17 21:07

Kyle J


People also ask

Can we install Scikit using pip?

Installing the latest release Using such an isolated environment makes it possible to install a specific version of scikit-learn with pip or conda and its dependencies independently of any previously installed Python packages.

Why cant I use pip install Python?

One of the most common problems with running Python tools like pip is the “not on PATH” error. This means that Python cannot find the tool you're trying to run in your current directory. In most cases, you'll need to navigate to the directory in which the tool is installed before you can run the command to launch it.

How do I enable pip in Python?

Step 1: Download the get-pip.py (https://bootstrap.pypa.io/get-pip.py) file and store it in the same directory as python is installed. Step 2: Change the current path of the directory in the command line to the path of the directory where the above file exists. Step 4: Now wait through the installation process. Voila!


1 Answers

Issue was stdint.h was not installed with the VS Python setup.

To solve this, visit https://raw.githubusercontent.com/mattn/gntp-send/master/include/msinttypes/stdint.h

Copy and paste the text into a notepad document/text editor and save it to C:\Users\Kyle\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\include\

Save it as stdint.h

like image 85
Kyle J Avatar answered Nov 07 '22 10:11

Kyle J