

EXECUTE sp_execute_external_script         
@language =N'Python',
@script=N'import sys
print ("Bonjour de:", sys.version)'; 
GO

----------------

sp_configure 'external scripts enabled'
GO
sp_configure 'external scripts enabled', 1;
GO
RECONFIGURE; 
GO
sp_configure 'external scripts enabled'
GO

----------------

EXECUTE sp_execute_external_script
@language =N'Python',
@script=N'import pip
for i in pip.get_installed_distributions():
    print(i)';
GO

----------------

EXECUTE sp_execute_external_script @language = N'Python', 
@script = N'
import revoscalepy 
print("revoscalepy est bien disponible")';
GO