Я пытаюсь запустить xgboost в хранимой процедуре с использованием SQL Server
2017 . Вот как я установил xgboost :
(base) S:\SQL_Server_2017\MSSQL14.HEDGETOOLS\PYTHON_SERVICES\Scripts>conda.exe install -c anaconda py-xgboost
Solving environment: done
==> WARNING: A newer version of conda exists. <==
current version: 4.5.11
latest version: 4.6.12
Please update conda by running
$ conda update -n base conda
## Package Plan ##
environment location: S:\SQL_Server_2017\MSSQL14.HEDGETOOLS\PYTHON_SERVICES
added / updated specs:
- py-xgboost
The following packages will be downloaded:
package | build
---------------------------|-----------------
openssl-1.1.1 | he774522_0 5.7 MB anaconda
pyasn1-0.1.9 | py35_0 57 KB anaconda
cryptography-1.0.2 | py35_0 1.3 MB anaconda
idna-2.0 | py35_0 122 KB anaconda
pyopenssl-0.15.1 | py35_2 161 KB anaconda
------------------------------------------------------------
Total: 7.3 MB
The following packages will be UPDATED:
openssl: 1.0.2r-he774522_0 anaconda --> 1.1.1-he774522_0 anaconda
The following packages will be DOWNGRADED:
cryptography: 1.7.1-py35_0 --> 1.0.2-py35_0 anaconda
idna: 2.2-py35_0 --> 2.0-py35_0 anaconda
pyasn1: 0.2.3-py35_0 --> 0.1.9-py35_0 anaconda
pyopenssl: 16.2.0-py35_0 --> 0.15.1-py35_2 anaconda
Proceed ([y]/n)?
Downloading and Extracting Packages
openssl-1.1.1 | 5.7 MB | ############################################################################ | 100%
pyasn1-0.1.9 | 57 KB | ############################################################################ | 100%
cryptography-1.0.2 | 1.3 MB | ############################################################################ | 100%
idna-2.0 | 122 KB | ############################################################################ | 100%
pyopenssl-0.15.1 | 161 KB | ############################################################################ | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
(base) S:\SQL_Server_2017\MSSQL14.HEDGETOOLS\PYTHON_SERVICES\Scripts>conda list | findstr xgb
_py-xgboost-mutex 2.0 cpu_0 anaconda
libxgboost 0.72 0 anaconda
py-xgboost 0.72 py35h6538335_0 anaconda
(base) S:\SQL_Server_2017\MSSQL14.HEDGETOOLS\PYTHON_SERVICES\Scripts>python
Python 3.5.6 |Anaconda, Inc.| (default, Aug 26 2018, 16:05:27) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import xgboost
>>> quit()
(base) S:\SQL_Server_2017\MSSQL14.HEDGETOOLS\PYTHON_SERVICES\Scripts>
Как видите, я активировал среду PYTHON_SERVICES , и после установки я смог запустить python 3.5 из этой среды. Импорт xgboost работал. Пока все хорошо.
После запуска SQL Server Management Studio я попытался импортировать xgboost в сценарии Python следующим образом:
![enter image description here](https://i.stack.imgur.com/Y0Juu.png)
Не удалось импортировать. Кроме того, я думаю, что распечатка ошибок абсолютно бессмысленна. Это совсем не поможет.
Пожалуйста, объясните, почему revoscalepy не удалось.
Чарльз