From 7e2ea8d2b81a0da04620e48dae9a2d5d45bb4e6f Mon Sep 17 00:00:00 2001 From: Shixiang Wang Date: Mon, 29 Mar 2021 23:05:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=96=B0=E5=BB=BA=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E4=BD=BF=E7=94=A8=E7=9A=84=20python=20=E7=89=88?= =?UTF-8?q?=E6=9C=AC=EF=BC=8C=E8=A7=A3=E5=86=B3=E5=AE=89=E8=A3=85sigprofil?= =?UTF-8?q?er=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- R/best_practice.R | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/R/best_practice.R b/R/best_practice.R index 1122f61c..7ea269ec 100644 --- a/R/best_practice.R +++ b/R/best_practice.R @@ -1278,9 +1278,14 @@ env_install <- function(use_conda, py_path, pkg, pkg_version) { } message("Conda environment not detected, creat it and install required packages.") message("======") - reticulate::conda_create("sigminer_sigprofiler") + reticulate::conda_create("sigminer_sigprofiler", packages = "python=3.7") message("Installing packages, be patient...") message("======") + # reticulate::conda_install("sigminer_sigprofiler", + # packages = "torch==1.5.1", + # pip = TRUE, + # pip_options = "-f https://download.pytorch.org/whl/torch_stable.html" + # ) reticulate::conda_install("sigminer_sigprofiler", packages = paste0(pkg, "==", pkg_version), pip = TRUE