I've successfully installed Python on SQL Server and was able to run simple Python scripts through SSMS without any issues. However, after importing additional libraries (such as matplotlib, etc.), I started encountering the following error:
Unable to communicate with the runtime for 'Python' script for request id: 3807907B-2C09-438E-BBC2-C71CE1C30A1B. Please check the requirements of 'Python' runtime.
At this point, none of my Python scripts execute, even the basic ones that were working earlier.
I've searched extensively online, but haven't found a clear resolution. From what I understand, it might be related to compatibility issues, missing dependencies, or a misconfigured Python environment for SQL Server Machine Learning Services.
If you’ve seen this issue before or have any suggestions on how to fix it, I’d really appreciate your input. Also, if you have a working configuration setup, I'd be grateful if you could share your environment details for comparison.
Here’s what I’ve already checked:
- Python is still installed and accessible.
- SQL Server Machine Learning Services for Python is properly installed.
- The external scripting feature is enabled (sp_configure 'external scripts enabled', 1).
- The Launchpad service is running correctly.
- No apparent issues in the logs or permissions.