Can't install coinbase API with pip

872 Views Asked by At

Python 3.6 pip3

Whenever I run

pip3 install coinbase

I get the error

c:\users\zac\appdata\local\programs\python\python36-32\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\cl.exe' failed with exit status 2

Even though the folder that has io.h is in my path C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt

1

There are 1 best solutions below

2
On

Define the below Environment variables and then run the pip command

INCLUDE=C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt
LIB=C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10240.0\um\x64;C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10240.0\ucrt\x64

(or)

Run the below command before running "pip3 install coinbase"

set INCLUDE=C:\Program Files (x86)\Windows Kits\10\Include\<version>\ucrt
set LIB=C:\Program Files (x86)\Windows Kits\10\Lib\<version>\um\x64;C:\Program Files (x86)\Windows Kits\10\Lib\<version>\ucrt\x64

As the version changes path changes For example: version --> 10.0.10240.0

set INCLUDE=C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt
set LIB=C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10240.0\um\x64;C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10240.0\ucrt\x64