In Microsoft SQL Server 2017 Cumulative Update 27 (CU27), the Python package code is shipped for the new Python runtime 3.7. The code depends on an updated version of NumPy 16.1 that is broken because of a NumPy issue.
This problem is fixed in the following cumulative update for SQL Server:
Each new cumulative update for SQL Server contains all the hotfixes and security fixes that were in the previous build. We recommend that you install the latest build for your version of SQL Server:
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Learn about the terminology that Microsoft uses to describe software updates.