Skip to content

Commit

Permalink
修正新建环境使用的 python 版本,解决安装sigprofiler的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ShixiangWang committed Mar 29, 2021
1 parent cf7aca5 commit 7e2ea8d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion R/best_practice.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7e2ea8d

Please sign in to comment.