obachem / kmc2 Goto Github PK
View Code? Open in Web Editor NEWCython implementation of k-MC2 and AFK-MC2 seeding
Cython implementation of k-MC2 and AFK-MC2 seeding
I tried to install it by PyCharm and got these errors:
kmc2.c(18737): error C2039: "exc_type": Ґ пў«пҐвбп з«Ґ®¬ "_ts".
C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\include\cpython/pystate.h(51): note: б¬. ®Ўкпў«ҐЁҐ "_ts"
kmc2.c(18738): error C2039: "exc_value": Ґ пў«пҐвбп з«Ґ®¬ "_ts".
C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\include\cpython/pystate.h(51): note: б¬. ®Ўкпў«ҐЁҐ "_ts"
kmc2.c(18739): error C2039: "exc_traceback": Ґ пў«пҐвбп з«Ґ®¬ "_ts".
C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\include\cpython/pystate.h(51): note: б¬. ®Ўкпў«ҐЁҐ "_ts"
kmc2.c(18751): error C2039: "exc_type": Ґ пў«пҐвбп з«Ґ®¬ "_ts".
C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\include\cpython/pystate.h(51): note: б¬. ®Ўкпў«ҐЁҐ "_ts"
kmc2.c(18752): error C2039: "exc_value": Ґ пў«пҐвбп з«Ґ®¬ "_ts".
C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\include\cpython/pystate.h(51): note: б¬. ®Ўкпў«ҐЁҐ "_ts"
kmc2.c(18753): error C2039: "exc_traceback": Ґ пў«пҐвбп з«Ґ®¬ "_ts".
C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\include\cpython/pystate.h(51): note: б¬. ®Ўкпў«ҐЁҐ "_ts"
kmc2.c(18754): error C2039: "exc_type": Ґ пў«пҐвбп з«Ґ®¬ "_ts".
C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\include\cpython/pystate.h(51): note: б¬. ®Ўкпў«ҐЁҐ "_ts"
kmc2.c(18755): error C2039: "exc_value": Ґ пў«пҐвбп з«Ґ®¬ "_ts".
C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\include\cpython/pystate.h(51): note: б¬. ®Ўкпў«ҐЁҐ "_ts"
kmc2.c(18756): error C2039: "exc_traceback": Ґ пў«пҐвбп з«Ґ®¬ "_ts".
C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\include\cpython/pystate.h(51): note: б¬. ®Ўкпў«ҐЁҐ "_ts"
kmc2.c(18799): error C2039: "exc_type": Ґ пў«пҐвбп з«Ґ®¬ "_ts".
C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\include\cpython/pystate.h(51): note: б¬. ®Ўкпў«ҐЁҐ "_ts"
kmc2.c(18800): error C2039: "exc_value": Ґ пў«пҐвбп з«Ґ®¬ "_ts".
C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\include\cpython/pystate.h(51): note: б¬. ®Ўкпў«ҐЁҐ "_ts"
kmc2.c(18801): error C2039: "exc_traceback": Ґ пў«пҐвбп з«Ґ®¬ "_ts".
C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\include\cpython/pystate.h(51): note: б¬. ®Ўкпў«ҐЁҐ "_ts"
kmc2.c(18802): error C2039: "exc_type": Ґ пў«пҐвбп з«Ґ®¬ "_ts".
C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\include\cpython/pystate.h(51): note: б¬. ®Ўкпў«ҐЁҐ "_ts"
kmc2.c(18803): error C2039: "exc_value": Ґ пў«пҐвбп з«Ґ®¬ "_ts".
C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\include\cpython/pystate.h(51): note: б¬. ®Ўкпў«ҐЁҐ "_ts"
kmc2.c(18804): error C2039: "exc_traceback": Ґ пў«пҐвбп з«Ґ®¬ "_ts".
C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\include\cpython/pystate.h(51): note: б¬. ®Ўкпў«ҐЁҐ "_ts"
kmc2.c(18826): error C2039: "exc_type": Ґ пў«пҐвбп з«Ґ®¬ "_ts".
C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\include\cpython/pystate.h(51): note: б¬. ®Ўкпў«ҐЁҐ "_ts"
kmc2.c(18827): error C2039: "exc_value": Ґ пў«пҐвбп з«Ґ®¬ "_ts".
C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\include\cpython/pystate.h(51): note: б¬. ®Ўкпў«ҐЁҐ "_ts"
kmc2.c(18828): error C2039: "exc_traceback": Ґ пў«пҐвбп з«Ґ®¬ "_ts".
C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\include\cpython/pystate.h(51): note: б¬. ®Ўкпў«ҐЁҐ "_ts"
kmc2.c(18829): error C2039: "exc_type": Ґ пў«пҐвбп з«Ґ®¬ "_ts".
C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\include\cpython/pystate.h(51): note: б¬. ®Ўкпў«ҐЁҐ "_ts"
kmc2.c(18830): error C2039: "exc_value": Ґ пў«пҐвбп з«Ґ®¬ "_ts".
C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\include\cpython/pystate.h(51): note: б¬. ®Ўкпў«ҐЁҐ "_ts"
kmc2.c(18831): error C2039: "exc_traceback": Ґ пў«пҐвбп з«Ґ®¬ "_ts".
C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\include\cpython/pystate.h(51): note: б¬. ®Ўкпў«ҐЁҐ "_ts"
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.
As stated in https://guides.github.com/activities/citable-code/ there is a way to get DOI for your open source project on GitHub. Please do! I want to cite it in the future.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.