command ‘swig.exe’ failed: No such file or directory when installing pocket sphinx today. I found a lot of content on the Internet, and finally I succeeded.
first of all, my computer is Windows10 system, the method is only available for Windows system, other systems do not know.
error is due to the fact that swig is missing from your computer, so you need to download and install it. I download from the website of the latest package swig 4.0.2, website address is: http://www.swig.org/download.html.
to unzip the downloaded files to C pan-gen directory. I want to emphasize the root directory here, because my previous attempts to put it in C:\Program Files (x86) still didn’t work (for unknown reasons). Finally, I just put it under C:\swigwin-4.0.2.
then add a new path path to the environment variable.
after the above steps are completed, then there is no problem with installing pocketsphinx.
Read More:
- When python installs pocketsphinx module (package), an error is reported: command ‘swig.exe’ failed: No such file or directory
- Install python’s C extension compilation environment under windows (solve “error: command’cl.exe’ failed: No such file or directory”)
- Install Python C extension compiler environment under windows (solve “error: command” cl.exe ‘ failed: No such file or directory”)
- [tools] vscode debug report G + +. Exe no such file or directory fatal error no input files
- Python FileNotFoundError: [Errno 2] No such file or directory: ‘objects/epsilon.pkl
- No code, a solution to the error in the path of reading CSV file by Python: filenotfounderror: [errno 2] no such file or directory: ‘XX. CSV‘
- When Python Django creates a database, can’t open file ‘ manage.py ‘: [Errno 2] No such file or directory
- How to Fix Module build failed: Error: ENOENT: no such file or directory, scandir xxxxxx\node_…
- fatal error: Python.h: No such file or directory
- Error: ENOENT: no such file or directory, uv_cwd Error: Cannot find module
- Module build failed: Error: ENOENT: no such file or directory, scandir,‘node_modules\node-sass\vend’
- Fatal error in CentOS: Python. H: no that file or directory
- fatal error: Python.h: No such file or directory compilation terminated.
- Cannot open include file: ‘io.h‘: No such file or directory
- fatal error: Python.h: No such file or directory
- #During OpenGL development, fatal error C1083: can’t open include file: “GL / glut. H”: no such file or directory
- Failed to get D-Bus connection: No such file or directory
- In VS2010, the compiler cannot open the file “GL / glaux. H”: no such file or directory
- NPM installation module encountered enoent: no such file or directory, rename error
- VS2010 compiler can’t open include file: “GL / glaux. H”: no such file or directory