error C2143 failed with exit status 2 when using pip install from Anaconda #57
Comments
|
I get the same error. I removed
from src/main.cpp and the error disappeared. |
|
Thanks for letting me know. It would be nice to know why. You also had the error with Anaconda and VS19, or is this a broader issue? |
|
I had the same error with Anaconda and with a python installation without Anaconda using VS19 MSVC compiler. Remplacing the lines with |
|
Abovementioned fixes work for me as well |
|
I guess that this is no special Anaconda error. The problem seems to be, that a pre-processor variable does not have a defined datatype, such that VERSION_INFO="0.0.1" is not always considered to be a string (for instance in Visual Studio). Please see this stackoverflow-article for a similar problem: https://stackoverflow.com/questions/240353/convert-a-preprocessor-token-to-a-string For me it worked (VS2017) to write the following code:
|
I tried to
pip installthe repo in a conda environment and VS19. I got the following error. (I do have installed the "Microsoft Visual C++ 2015-2019 Redistributable - 14.25.28508" for x86 and x64.)Any idea what the issue is?
The text was updated successfully, but these errors were encountered: