ccxt installation failure on anaconda

Asked 2 years ago, Updated 2 years ago, 218 views

https://note.mu/zephel01/n/n985c2fe0b6c6
I am trying to install ccxt on windows by referring to this site.
We are stuck with the following error.
The environment is anaconda3 in Windows 8.1.

Tried

  • The lru-dict seems to have failed, so install it separately→Same error
  • I cannot open the fatal error C1083: include file.'io.h': No such file or directory cause unknown.Permissions but io.h does not exist → VS2017 Installation
  • pip update

Thank you for your cooperation.

Failed building wheel for lru-dict
  Running setup.py clean for lru-dict
Failed to build lru-dict
Installing collected packages: ccardet, picares, aiodns, lru-dict, web3, ccxt
  Running setup.py install for lru-dict... error
    Complete output from command c:\users\dq\anaconda3\python.exe-u-c" import
setuptools, tokenize;__file__='C:\\Users\\DQ\\AppData\\Local\\Temp\\pipe-install-
c4afsz_d\\lru-dict\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f
.read().replace('\r\n', '\n'); f.close();exec(compile(code,__file__, 'exec'))"i
nstall --record C:\Users\DQ\AppData\Local\Temp\pipe-record-yi6dtr7k\install-recor
d.txt --single-version-external-managed --compile:
    running install
    running build
    running build_ext
    building 'lru' extension
    creating build
    creating build\temp.win-amd64-3.6
    creating build\temp.win-amd64-3.6\Release
    C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\
14.15.26726\bin\HostX86\x64\cl.exe/c/nologo/Ox/W3/GL/DNDEBUG/MD-Ic:\user
s\dq\anaconda3\include-Ic:\users\dq\anaconda3\include" - IC:\Program Files (x86)
\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\ATLMFC\include
" US>" - IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC
\14.15.26726\include"/Tclru.c/Fobuild\temp.win-amd64-3.6\Release\lru.obj
    lru.c
    c:\users\dq\anaconda3\include\pyconfig.h(59): fatal error C1083:include f
Unable to open file.'io.h' —No such file or directory
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\Comm
unity\\VC\\Tools\\MSVC\14.15.26726\\bin\\HostX86\\x64\cl.exe'failed with exit
 status2

    ----------------------------------------
Command "c:\users\dq\anaconda3\python.exe-u-c" import setup tools, tokenize;__f
ile__='C:\\Users\\DQ\\AppData\\Local\\Temp\\pip-install-c4afsz_d\\lru-dict\\setu
p.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n',
'\n');f.close();exec(compile(code,__file__, 'exec'))"install --record C:\Users
\DQ\AppData\Local\Temp\pipe-record-yi6dtr7k\install-record.txt --single-version-e
xternally-managed --compile "failed with error code 1 in C:\Users\DQ\AppData\Loc
al\Temp\pipe-install-c4afsz_d\lru-dict\

python visual-studio pip anaconda3

2022-09-30 19:13

1 Answers

This error occurred because Visual Studio could not include the library io.h.It's hard for beginners to fix it, so install lru-dict instead of pip, you should install the lru-dict binary package

instead of pip.
conda install-cquantopian lu-dict


2022-09-30 19:13

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.