繁体   English   中英

无法在 PowerBI 中连接 python 脚本

[英]Unable to connect python script in PowerBI

我已将数据导入 PowerBI,我现在正在尝试对导入的数据执行一些 python 脚本,但出现上述错误。 Please note that I have installed both numpy and pandas through the pip install function in cmd.

错误

Firstly, check whether the below steps were followed: Click on File --> Options and settings --> Options --> Under GLOBAL section click on Python scripting --> Check the Detected Python home directories is whether Python 39 or Python310 (based在您的 Python 版本上)。 点击这里

确保检测到的 Python 主目录不是 Anaconda。

其次,将检测到的 Python IDE 从“.PY 文件的默认操作系统程序”更改为“其他”,然后浏览您选择的合适的 IDE。

我建议选择 Microsoft VS Code,因为我选择了相同的。 点击这里

现在让我告诉你工作。

单击获取数据 --> 更多.. --> 在搜索中键入 Python 脚本 --> Select “Python 脚本” --> 单击“连接”。 现在在脚本中键入以下代码以加载数据。 (确保您已经给出了自己的数据路径)。 接下来点击“确定”。 点击这里

将打开一个导航器 window,如下所示。 Select 您需要的数据,然后单击“加载”。 点击这里

希望我的详细回答对您有所帮助,如有其他问题,请随时回复。 KLH 贡献者:2010030470,2010030119,2010030088,2010030155

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM