I'm on Windows 10 and I've been trying to pip install mysql, but keep getting the error message:
error: command 'c1.exe' failed: No such file or directory
I have Microsoft VC 14 installed, at C:\Program Files (x86)\
For some reason when I installed python, it installed at C:\Users\name\AppData\Local\Programs\Python\Python36
I've tried moving c1.exe into the python folder, but that didn't help.
Do I need to move the python folder somewhere else? Will that mess up python in any way? Is there an easier fix?
UPDATE: I changed the PATH variable, and it resolved this error. Then it moved on to a new error:
I changed the path, and it resolved the error. Then I got a new error, related to the execution of c1.exe it seems:
_mysql.c
_mysql.c(42): fatal error C1083: Cannot open include file: 'config-win.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\x86_amd64\\c1.exe' failed with exit status 2`
you might have to add a python path variable or change it. see config noted here: How to add to the pythonpath in windows 7?
Related
For implementation into my program, I have run pip install pycuda on both the cli and on pycharm, each time efforting the same error:
C:\Users\jayde\AppData\Local\Temp\pip-install-yixibeoo\pycuda_b4fb0e3aeab248dc80b43653a83c84ba\src\cpp\cuda.hpp(14): fatal error C1083: Cannot open include file: 'cuda.h': No such file or directory
error: command 'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.34.31933\bin\HostX86\x64\cl.exe' failed with exit code 2
I am not sure why this is occuring since, although different, njit also utilizes cuda to which I have installed before as a compiler. And as is stated in the error, this is not arising from pip itself but rather another subproccess. Why might this be occuring?
Initially I just ran activate.bat pip install pycuda==2022.2.2 which I would not assume would make any difference so I suspect it is something more subcutaneous. So would it be best to reinstall VS studio?
I tried installing the mecab-python-windows package both from source and via pip on a Windows 64-bit machine. I get the following error in both cases:
MeCab_wrap.cxx(3137): fatal error C1083: Cannot open include file: 'mecab.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`
How can I deal with this error? Where could I find the mecab.h file and where should I place it? I would really appreciate any suggestion! Thank you!
mecab-python-windows is not maintained, development has moved to mecab on PyPI. See here, which also mentions the error you are getting. It suggests you do this:
CPLUS_INCLUDE_PATH=`python-config --prefix`/Headers:$CPLUS_INCLUDE_PATH pip install mecab
I would suggest you use mecab-python3.
I'm trying to install pyodbc for python 3.9.2 (32-bit), however I keep getting the error:
C:\Users\ICAPP02\AppData\Local\Temp\pip-install-0c78okb8\pyodbc_d782ffa5512448c49f83e214e7ec4434\src\pyodbc.h(19): fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\bin\HostX86\x86\cl.exe' failed with exit code 2
I understand I am missing the windows.h C++ header files, but I genuinely cant find them, no longer know where to look, know how many I am missing, or know how they look like.
Also when I do locate them, do I place them in the folder that is referenced in the error?: C:\Program Files (x86)\Microsoft VisualStudio\2019\Community\VC\Tools\MSVC\14.28.29910\bin\HostX86\x86\cl.exe
I added a photo of the Visual Studio package I downloaded, perhaps I downloaded the wrong package...
For some reason the latest version of pyodbc built a Python 3.9 wheel for 64-bit but not for 32-bit. However, you can get the 32-bit wheel here:
https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyodbc
You can also just install the windows sdk, for your particular windows version, to resolve this issue
https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/
I'm trying to install a program from pip install SimPEGEM1D and I getting the error " fatal error C1083: Cannot open include file: 'io.h': No such file or directory"
I already have tried the suggestion from 'io.h': No such file or directory
but didn't work, I have visual studio 2017 and anaconda. I went to my directory and there is no io.h file there, so did I miss something when I installed visual studio? How do I fix that?
TL;DR: Update or reinstall Visual Studio https://visualstudio.microsoft.com/visual-cpp-build-tools/
I'm sure you've already solved this problem given the time discrepancy. However, I ran into this problem today and found my solution by reinstalling Visual Studio.
Error I was receiving:
h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
Please note I also tried the following before reinstalling Visual Studio:
Pip/Pip3
Wheels
Setuptools
(verified Environment PATH/variables)
As of current Time and Date, you will be able to find the most up-to-date version of
Visual Studio cpp-Build-Tools here:https://visualstudio.microsoft.com/visual-cpp-build-tools/
When I try to install psycopg2, using PIP in a virtual environment, on Windows 8 I get the following error:
c:\python27\include\pyconfig.h(231) : fatal error C1083: Cannot open include file: 'basetsd.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\BIN\\amd64\\cl.exe' failed with exit status 2
I had previously had this error:
error: Unable to find vcvarsall.bat
So I followed the various answers in this question:
and managed to get rid of
error: Unable to find vcvarsall.bat
but have this new one to contend with
any ideas?
thanks
According to the psycopg website, you're supposed to install it using the Windows port:
http://www.stickpeople.com/projects/python/win-psycopg/
I'm guessing you'll need a version of Visual Studio installed for pip to be able to compile the headers correctly.