我想要用这个包,但是安装时报以下错。我c++用的是vscode,mingw什么的整的。
这个说需要visual c++什么的,求解答
(base) C:\Users\25929>pip install cydtw
Collecting cydtw
Using cached cydtw-0.1.4.tar.gz (54 kB)
Requirement already satisfied: Cython in c:\users\25929\anaconda3\lib\site-packages (from cydtw) (0.29.24)
Requirement already satisfied: numpy in c:\users\25929\anaconda3\lib\site-packages (from cydtw) (1.20.3)
Requirement already satisfied: scipy in c:\users\25929\anaconda3\lib\site-packages (from cydtw) (1.7.1)
Building wheels for collected packages: cydtw
Building wheel for cydtw (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\25929\anaconda3\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\25929\\AppData\\Local\\Temp\\pip-install-w43zdwdo\\cydtw_2877de9856bb4d158f78db4c2ec9325c\\setup.py'"'"'; __file__='"'"'C:\\Users\\25929\\AppData\\Local\\Temp\\pip-install-w43zdwdo\\cydtw_2877de9856bb4d158f78db4c2ec9325c\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\25929\AppData\Local\Temp\pip-wheel-frwpc42x'
cwd: C:\Users\25929\AppData\Local\Temp\pip-install-w43zdwdo\cydtw_2877de9856bb4d158f78db4c2ec9325c\
Complete output (5 lines):
running bdist_wheel
running build
running build_ext
building 'cydtw' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Failed building wheel for cydtw
Running setup.py clean for cydtw
Failed to build cydtw
Installing collected packages: cydtw
Running setup.py install for cydtw ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\25929\anaconda3\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\25929\\AppData\\Local\\Temp\\pip-install-w43zdwdo\\cydtw_2877de9856bb4d158f78db4c2ec9325c\\setup.py'"'"'; __file__='"'"'C:\\Users\\25929\\AppData\\Local\\Temp\\pip-install-w43zdwdo\\cydtw_2877de9856bb4d158f78db4c2ec9325c\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\25929\AppData\Local\Temp\pip-record-_v965kn5\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\25929\anaconda3\Include\cydtw'
cwd: C:\Users\25929\AppData\Local\Temp\pip-install-w43zdwdo\cydtw_2877de9856bb4d158f78db4c2ec9325c\
Complete output (5 lines):
running install
running build
running build_ext
building 'cydtw' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\25929\anaconda3\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\25929\\AppData\\Local\\Temp\\pip-install-w43zdwdo\\cydtw_2877de9856bb4d158f78db4c2ec9325c\\setup.py'"'"'; __file__='"'"'C:\\Users\\25929\\AppData\\Local\\Temp\\pip-install-w43zdwdo\\cydtw_2877de9856bb4d158f78db4c2ec9325c\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\25929\AppData\Local\Temp\pip-record-_v965kn5\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\25929\anaconda3\Include\cydtw' Check the logs for full command output.
error: Microsoft Visual C++ 14.0 or greater is required
先安装VC++