Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot install the KMC2 #8

Open
jimi0209 opened this issue Jun 9, 2022 · 0 comments
Open

cannot install the KMC2 #8

jimi0209 opened this issue Jun 9, 2022 · 0 comments

Comments

@jimi0209
Copy link

jimi0209 commented Jun 9, 2022

I run this command" pip install kmc2", then:
Collecting kmc2
Using cached kmc2-0.1.tar.gz (102 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy in c:\users\admin\anaconda3\envs\python38-pytorch18\lib\site-packages (from kmc2) (1.20.2)
Requirement already satisfied: scipy in c:\users\admin\anaconda3\envs\python38-pytorch18\lib\site-packages (from kmc2) (1.6.2)
Requirement already satisfied: scikit-learn in c:\users\admin\anaconda3\envs\python38-pytorch18\lib\site-packages (from kmc2) (1.1.1)
Requirement already satisfied: nose in c:\users\admin\anaconda3\envs\python38-pytorch18\lib\site-packages (from kmc2) (1.3.7)
Requirement already satisfied: joblib>=1.0.0 in c:\users\admin\anaconda3\envs\python38-pytorch18\lib\site-packages (from scikit-learn->kmc2) (1.1.0)
Requirement already satisfied: threadpoolctl>=2.0.0 in c:\users\admin\anaconda3\envs\python38-pytorch18\lib\site-packages (from scikit-learn->kmc2) (3.1.0)
Building wheels for collected packages: kmc2
Building wheel for kmc2 (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [12 lines of output]
running bdist_wheel
running build
running build_ext
building 'kmc2' extension
creating build
creating build\temp.win-amd64-3.8
creating build\temp.win-amd64-3.8\Release
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30037\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -I. -Ic:\users\admin\anaconda3\envs\python38-pytorch18\lib\site-packages
numpy\core\include -Ic:\users\admin\anaconda3\envs\python38-pytorch18\include -Ic:\users\admin\anaconda3\envs\python38-pytorch18\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.3003
7\include" /Tckmc2.c /Fobuild\temp.win-amd64-3.8\Release\kmc2.obj -O3
cl: 命令行 warning D9002 :忽略未知选项“-O3”
kmc2.c
c:\users\admin\anaconda3\envs\python38-pytorch18\include\pyconfig.h(59): fatal error C1083: 无法打开包括文件: “io.h”: No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30037\bin\HostX86\x64\cl.exe' failed with exit status 2
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for kmc2
Running setup.py clean for kmc2
Failed to build kmc2
Installing collected packages: kmc2
Running setup.py install for kmc2 ... error
error: subprocess-exited-with-error

× Running setup.py install for kmc2 did not run successfully.
│ exit code: 1
╰─> [12 lines of output]
running install
running build
running build_ext
building 'kmc2' extension
creating build
creating build\temp.win-amd64-3.8
creating build\temp.win-amd64-3.8\Release
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30037\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -I. -Ic:\users\admin\anaconda3\envs\python38-pytorch18\lib\site-packages
numpy\core\include -Ic:\users\admin\anaconda3\envs\python38-pytorch18\include -Ic:\users\admin\anaconda3\envs\python38-pytorch18\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.3003
7\include" /Tckmc2.c /Fobuild\temp.win-amd64-3.8\Release\kmc2.obj -O3
cl: 命令行 warning D9002 :忽略未知选项“-O3”
kmc2.c
c:\users\admin\anaconda3\envs\python38-pytorch18\include\pyconfig.h(59): fatal error C1083: 无法打开包括文件: “io.h”: No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30037\bin\HostX86\x64\cl.exe' failed with exit status 2
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> kmc2

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant