Python compiled file(.pyc) run issue in ArcGIS 10.0, 10.2, 10.3

المشرف العام

Administrator
طاقم الإدارة
I have developed an arcgis 10.0 based addin with .NET technologies. I have run python script from my .NET code. In acrgis 10.0 , python script compiled with python version 2.6. I have also another 2 machines where arcGIS 10.2 and acrgis 10.3 installed. These 2 machines have python version 2.7. If I build my code in each machine and run tool in arcGIS, then all functions are OK. But the problem is :

<h1>If I build my code and compiled with python version 2.6 , it does not work in arcgis version 10.2,103 (>10.0). It gives a run time error: >>Runtime Error: bad magic number in .pyc files.
 
أعلى