admin管理员组文章数量:1287645
I'm testing out PA for desktop flows for Python scripts and encountered an error when loading modules. I would like to run Python script and return the output to PA variable. When I'm trying to load pandas
I get the following error: "SyntaxError: future feature is not defined:annotations" (see the pic for the error message). This error is produced when I'm supplying the directory with the modules for my installation of Python (version 3.12.9) as the module folder. How to solve this issue and make my code executable successfully?
Here's the code I'm trying to run:
import pandas as pd
data = [
{'a': 'Alice', 'b': 25}
]
# Creating DataFrame
df = pd.DataFrame(data)
# Displaying the DataFrame
print(df)
I tried installing Python 3.4 on my machine but am experiencing issues downloading pandas and other modules due to SSL error (I couldn't solve that either). I did this to supply the modules for the Python version used in the flow.
I'm quite new to Power Automate and am not a specialist in Python. Also, I tried running this code with both 2.7 and 3.4 Python. My computer has a different version of Python installed and I'm providing the path to my local installation of modules.
本文标签: pandasRunning Python in Power Automate DesktopStack Overflow
版权声明:本文标题:pandas - Running Python in Power Automate Desktop - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741280103a2369957.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论