Thanks, but, reading that issue, is different from what I need. My issue is UiPath does not recognize that Python modules/libraries as “numpy”, “pandas”, “tabula”, “tensorflow”, among others, are already installed. For this issue, UiPath show me the message at “Load Python Script” activity.
Do you suggest me reinstall UiPath or something else?
Yes. I did. But the most curiously is that I try run the script with the command prompt of Windows and appear the same message:
C:\Users\X>C:\Users\X\AppData\Local\Programs\Python\Python36\python.exe C:\Users\X\Documents\UiPath\Python_First_Test\Test.py
Traceback (most recent call last):
File “C:\Users\X\Documents\UiPath\Python_First_Test\Test.py”, line 4, in
import pandas as pd
ModuleNotFoundError: No module named ‘pandas’
In fact, into my script file, I tried to write this form:
import sys
import os
sys.path.append(“C:\Users\X\Documents\Python Scripts”)
import pandas as pd
My case might be unique but this is how I got the issue resolved. For me, turned out it was due to confusion with having multiple versions of Python. In the IDE where the code worked fine for me, I checked the path where that version of Python was
import os
import sys
os.path.dirname(sys.executable)
When I used the path that came from this, into the Python Scope activity’s Input “Path” argument, it resolved the issue for me. Hope this helps!