I'm trying to install microsoftml
and revoscalepy
. These packages are developed by microsoft and can be used (apparently) for scoring python models in SQL server 2017
.
I'm using an anaconda environment with python 3.7 installed.
The intuitive does not work:
pip install microsoftml
pip install revoscalepy
Could not find a version that satisfies the requirement microsoftml
The syntax of the docs also gives me an error
pip install https://rserverdistribution.azureedge.net/production/revoscalepy/9.2.1/wb/1033/d282048eb04046999211535f7368a0a4/windows/microsoftml-1.5.0-py3-none-any.whl
Could not find a version that satisfies the requirement revoscalepy
Would appreciate any other suggestions.
It took me a bit of time to understand, so here I will try to explain my findings. Also check the full docs.
microsoftml
andrevoscalepy
are not onPyPi
, so you can notpip install
them. Rather they are included in a fullpython 3.5
distribution provided by Microsoft. It is a shame they don't support >= 3.6.Microsoft SQL Server 2017
(or beyond). This is generally what you want to do if you want to use it in SQL.SQL server tips
sp_configure 'clr enabled', 1
sp_configure 'external scripts enabled', 1; RECONFIGURE WITH OVERRIDE;
F:\Program Files\Microsoft SQL Server\MSSQL14.MSSQLSERVER\PYTHON_SERVICES
cd folder & python.exe –m ipykernel install –name “Py35 SQL”
Separate installation tips
C:\Program Files\Microsoft\ML Server\PYTHON_SERVER
cd folder & python.exe –m ipykernel install –name “Py35 SQL”