📜  将包安装到数据块 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:10.547000             🧑  作者: Mango

代码示例1
dbutils.library.installPyPI("torch")
dbutils.library.installPyPI("scikit-learn", version="1.19.1")
dbutils.library.installPyPI("azureml-sdk", extras="databricks")
dbutils.library.restartPython()  # Removes Python state, but some libraries might not work without calling this function