Skip to main content
Solved

Either Python may not be installed correctly, or the Path environment variable may not be set.

  • November 3, 2025
  • 7 replies
  • 54 views

Uzumaki
Forum|alt.badge.img+12
  • Navigator | Tier 3
  • 43 replies

Hello,

Whenever I run a bot that uses Python on my local machine, I run into the following error:
Either Python may not be installed correctly, or the Path environment variable may not be set.

I have ensured that the latest python is installed on my device and the path environment variable is properly set up, but I still get this error.

Has anyone encountered this or know what could possibly be going wrong?

Best answer by Uzumaki

A member of the Automation Anywhere support was able to resolve the issue for me. Not entirely sure how it resolved itself, but in addition to installing python v3.13 from the Microsoft store, we installed python v3.14 from the python website. With the install from the python website, we installed as an administrator, disabled the path variable length limit, and allowed the installer to create the path variable. 

Suddenly my python within AA works. I appreciate the suggestions ​@Padmakumar ​@Aaron.Gleason 

7 replies

Aaron.Gleason
Automation Anywhere Team
Forum|alt.badge.img+14
  • Automation Anywhere Team
  • 870 replies
  • November 3, 2025

@Uzumaki Try installing Python from the Microsoft Store. It ensures all the variables are set properly without the hard work.  😅  See if that works for you.

 


Padmakumar
Premier Pathfinder | Tier 7
Forum|alt.badge.img+15
  • Premier Pathfinder | Tier 7
  • 1170 replies
  • November 4, 2025

Hi ​@Uzumaki,

Below mentioned are the main root causes for this issue. 

 

1) Confirm AA‑supported Python version: 

AA360 supports specific major/minor Python versions. If you’re on something very new (e.g., 3.12/3.13), AA may not detect it. The sweet spots are typically 3.8–3.10 (varies by AA build).

 

2) 32‑bit vs 64‑bit mismatch:

  • Make sure your installed Python architecture matches what AA expects on your machine (usually 64‑bit on 64‑bit Windows).
  • If your packages were installed for 32‑bit Python but AA is pointing to 64‑bit (or vice versa), you’ll get interpreter/launch errors.

 

3) PATH visibility to the Bot Agent:
Even if PATH is correct in your user session, the Bot Agent service may not see it:

  • Open Services → Automation Anywhere Bot Agent → Log On tab.

                     1. If it runs as Local System, it won’t see your User PATH.
                     2. Best practice: run Bot Agent as your user account or duplicate the Python path entries into System PATH.

  • After changes: Restart the Bot Agent.

PATH (System):

  • C:\Users\<you>\AppData\Local\Programs\Python\Python310\
  • C:\Users\<you>\AppData\Local\Programs\Python\Python310\Scripts\

Uzumaki
Forum|alt.badge.img+12
  • Author
  • Navigator | Tier 3
  • 43 replies
  • November 4, 2025

@Uzumaki Try installing Python from the Microsoft Store. It ensures all the variables are set properly without the hard work.  😅  See if that works for you.

 

Hi Aaron. I appreciate the response. Unfortunately I’m getting the same error. I confirmed that path variables were properly set by the Microsoft install. Could the be caused by security within my company?

 



 


Aaron.Gleason
Automation Anywhere Team
Forum|alt.badge.img+14
  • Automation Anywhere Team
  • 870 replies
  • November 4, 2025

@Uzumaki At that point, I would definitely engage your company’s IT department. Our log files will only show what you see on the error message, so they won’t be terribly helpful in this case. 

If you launch a command prompt and type “python” at the prompt and press Enter, does it launch the Python command line interface?


Uzumaki
Forum|alt.badge.img+12
  • Author
  • Navigator | Tier 3
  • 43 replies
  • November 4, 2025

@Uzumaki At that point, I would definitely engage your company’s IT department. Our log files will only show what you see on the error message, so they won’t be terribly helpful in this case. 

If you launch a command prompt and type “python” at the prompt and press Enter, does it launch the Python command line interface?

I will try my IT department. Thank you

Yes, the cmd shows the python version

 

 


Forum|alt.badge.img
  • Cadet | Tier 2
  • 1 reply
  • November 5, 2025

If its not resolved yet I would suggest to check for the python version in command prompt. For AA360 the python version should be around 3.8-3.11 depending on your build.


Uzumaki
Forum|alt.badge.img+12
  • Author
  • Navigator | Tier 3
  • 43 replies
  • Answer
  • November 5, 2025

A member of the Automation Anywhere support was able to resolve the issue for me. Not entirely sure how it resolved itself, but in addition to installing python v3.13 from the Microsoft store, we installed python v3.14 from the python website. With the install from the python website, we installed as an administrator, disabled the path variable length limit, and allowed the installer to create the path variable. 

Suddenly my python within AA works. I appreciate the suggestions ​@Padmakumar ​@Aaron.Gleason