0

I am working with ` Windows + CUDA 6.5 + VS2010 + Python2.7 + Theano. My Python scripts works well when using command line, say:

python DDI_convnet.py

and I get results as:

passed in CMD 1

passed in CMD 2

However, when I run the same Python scripts in Eclipse, I get a lot of errors:

error in Eclipse 1

error in Eclipse 2

error in Eclipse 3

I think this is probably due to the difference of character Map of Eclipse and CMD, because the warning C4819 implies that a lot of .h files are not parsed correctly. How to fix it?

talonmies
  • 70,661
  • 34
  • 192
  • 269
James
  • 2,535
  • 1
  • 15
  • 14

2 Answers2

0

I find the answer myself. This is because, I installed Microsoft C++ for Python first, and then installed VS2010. The environment variable of Eclipse can only be updated after restarting windows.

However, after I restart windows, the problem changes, not warning C4819 any more, it began to report errors like "unresolved external ...", which is mainly due to some DLLs or libs are not included correctly by Eclipse.

Finally, I decide to change my IDE to PyCharm. Everything goes well so far.

James
  • 2,535
  • 1
  • 15
  • 14
0

I guess your system setting of 'system locale' is Chinese. Change it to English could possibly fix this problem.

https://stackoverflow.com/a/37871883/3148107

Community
  • 1
  • 1
claymore
  • 69
  • 1
  • 5