在Windows 10上安装“ tick”时出错-未安装“ swig.exe”

时间:2019-12-11 16:18:23

标签: python python-3.x installation

在安装 tick https://pypi.org/project/tick/时遇到麻烦。

我试图按照https://github.com/X-DataInitiative/tick/blob/master/INSTALL.md上的文档进行操作,但是没有用。

我一直在关注Github的许多讨论和可能的解决方案,但是这些都不适合我。 我目前在Windows 10上,并且在Pycharm上使用Python 3.7.5版本的项目。 用pip安装tick我得到以下警告和错误:

Failed building wheel for tick

Running setup.py clean for tick
Failed to build tick
Installing collected packages: tick
  Running setup.py install for tick ... error
    Complete output from command C:\Users\venv\Scripts\python.exe -u -c "import setuptools,         
tokenize;__file__='C:\\Users\\AppData\\Local\\Temp\\pip-install-czlpygbo\\tick\\s
etup.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\stefa\AppData\Local\Temp\pip-record-cbdckla8\inst
all-record.txt --single-version-externally-managed --compile --install-headers C:\Users\PycharmProjects\project_000\venv\include\site\python3.7\tick:
Error executing check_cblas.py - cblas not found
running install
running build_ext
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
building 'tick\array\build._array' extension
swigging lib/swig/tick/array/array_module.i to lib/swig/tick/array/array_module_wrap.cpp
swig.exe -python -py3 -c++ -Ilib/swig -Ilib/include -outdir tick\array\build -DDEBUG_COSTLY_THROW -o lib/swig/tick/array/array_module_wrap.cpp lib/swig/tick/array/array_module.i
error: command 'swig.exe' failed: No such file or directory

0 个答案:

没有答案