PYTHONHOME=C:\Python\ or C:\Python25\
If setting a PYTHONHOME environment variable, it will need to match the actual installed instance of Python you are attempting to use. For most, with Python as installed with ArcGIS 10.2 or 10.3 that would be C:\Python27\ArcGIS10.x (the x version installed). ArcGIS 9.3 used Python25, ArcGIS 10.0 and 10.1 used Python26.
PYTHONPATH=C:\Python\Lib;C:\Python\DLLs;C:\Python\Lib\lib-tk;C:\Python\Lib\site-packages
With a PYTHONHOME set, the PYTHONPATH environment variable could also be %PYTHONHOME%\Lib;%PYTHONHOME%DLLs;%PYTHONHOME%\Lib\lib-tk;%PYTHONHOME%\Lib\site-packages. That allows changing from one Python install to another--trivial--just change the PYTHONHOME.
Windows is a strange beast in that the Python installation will place pythonxyz.dll into the C:\Windows\System32 on a 32-bit OS--but on a 64-bit OS the 32-bit library goes into the C:\Windows\SysWOW64 folder, not the System32.
And if you elect to install the Esri 64-bit background geoprocessing extension--an additional 64-bit Python is installed, then a 64-bit python27.dll will be installed to System32. The two DLLs have different date/time stamps and sizes, don't mix them.
add these strings
at your system environment path and python should work fine
Check your correct python folder the modify these paths above.
I think that if you erase the old python.dll file from system32 and syswow64 folders, (keep a copy of these files to revert the proces just in case) and then install again python from the installation dvd, this could fix your problem.
I took the python.dll file from the other computer were Argis+python were working fine, but if you don't have another computer with arcgis running, try to do what I say in the text above.
References:
-NOT WORKING python.dll ----->creation date 11/april/2012------->size 2918KB------> REMOVED
-WELL WORKING python.dll----->creation date 10/april/2012------->size 2250KB ----->PASTED TO SYSTEM32 FOLDER
Dear Friends I found a solution and I hope it will works for you.
I have tryed everything you wrote in this blog and other blogs about this same issue, and python still not working into my arcgis. Giving the message 000574 error Python is not installed.
I have Win7 64 bit, and I was using Arcgis 9 then installed Arcgis 10 and then upgrated to 10.2 last three years, and in my last installation Python was not found by Arcgis.
Also it was not working from python27.exe or pythonw.exe when try to run them from the folder C:\Python\Arcgis10.2
But then I went ot another computer where Arcgis 10.2 was recently installed and Python were running well.
It is a Win7 32 bits but all was running fine !!.
Then I have checked out that python27.dll in my computer was different size (and also the creation date) than the python.dll installed in the other computer.
Also the date of the python.dll in my computer, was older than the date I have installed Arcgis10.2 so I discover it was not replaced or updated with last arcgis installations.
Then I decided to remove the older python.dll file from my computer (located into System32 folder and syswow64 folder) and replace them with the newer file installed in the other computer.
Also I have pasted another copy of the new python.dll file into syswow32 just in case.
EVERYTHING START TO WORK INMEDIATLY WHEN I OPEN AGAIN ARCGIS. THE PROBLEM WAS FIXED!!
I hope this could help to some of you !!
regards
Oscar
Hi,Two years on - I have the same problem! Any calculation with Python gives me the error msg: Python Not Installed. Both ArcGIS 10 and Python are installed in C:/Program Files (x86). However I am on a network computer, and do not have a 😧 Drive! Would anybody know how I find out where ArcGIS 10 looks for Python on my computer, so I can copy-paste my Python folder there? Thanks!Sid.
This should let you know where the system paths are pointing. sys.pathDid you follow the instructions in the linked forum posts to resolve the issue? Are you on the latest service pack?
sys.path
Omer,You are not configured to also use a 64-bit Python build are you? The 64-bit Python would not work with the ArcPy site library from ArcGIS 10.Or, did you install ArcGIS 10 or SP1, from a command line with msiexec? If so, check the location of your Python26 install, it defaults to the root of the hard drive with the most space. A couple of ways to adjust things if so. This forum thread has some details.[INDENT]http://forums.arcgis.com/threads/18034-Problem-with-ArcToolbox-Scripts-after-installing-10-SP1-on-Windows-7-64-Bit?p=58249#post58249[/INDENT]Stuart
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.