Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I am getting error when trying to import seaborn and work with it.
shmat - Have you solved the problem? I have the same issue.
@RomanSk wrote:shmat - Have you solved the problem? I have the same issue.
Hi RomanSk,
Unfortunately, I did not manage to make it work. Still cannot find the reason.
Please let me know if you manage.
I have tried re-installing Power BI and re-installing the library.
I solved it this way. I changed home directory from C:\python to C:\Program Files\Python37 in options - Python scripting and it works.
Hi @shmat ,
By my tests and research, your issue may be caused by that you didn't install the package seaborn.
You need install the package seaborn with command like below.
Then use your script in Power BI Desktop, you could get the output.
Best Regards,
Cherry
Hi Cherry,
Thank you for your swift reply. Seaborn package has been installed before and, to be on the safe side, I did it again now.
This, however, did not solve my problem. I am still getting the same error.
Could there be anything else I am doing wrong? Maybe some other updates are needed?
In fact, the error is coming from "import seaborn as sns". If I run simply "import matplotlib.pyplot as plt" it says:
I do not get why seaborn does not work...
Hi @shmat ,
Please check if you have installed the latest version of Power BI Desktop (2.69.5467.1751).
In addition, please have a test with the pbix attached which run Seaborn well in your environment.
Best Regards,
Cherry
Hi Cherry,
Thank you again for your feedback. I tried the attached pbix and I it fails for me (the visual does not appear).
Have also checked the version of Power BI Desktop and it matches the one you say is the latest.
Do you have any other idea of what I might be missing/doing wrong?
Best regards,
Shmat
Hi @shmat ,
Have you tried with the suggestion of cnweke? Does it work?
If it works, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.
If you still have this issue, please share the screenshot of your command which install the package.
Best Regards,
Cherry
Hi,
Could you 'reinstall' it through:
conda install seaborn
and try again?
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
99 | |
82 | |
70 | |
60 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |