Open chenx2018 opened 2 years ago
I'd try following the Installation Guide here, which has troubleshooting guidance for the Python Environment and details on how to set up custom environments.
As of this message, the major requirements are:
I tried the above approach by calling:
reticulate::py_install(
envname = "my_gluonts_env",
python_version = "3.8.12",
packages = c(
"mxnet~=1.7",
"gluonts==0.8.0",
"pandas==1.0.5",
"numpy",
"pathlib==1.0.1",
"ujson==4.0.2"
),
method = "conda",
pip = TRUE
)
and the error is:
ERROR: Could not find a version that satisfies the requirement mxnet~=1.7 (from versions: 1.6.0)
ERROR: No matching distribution found for mxnet~=1.7
Error: Error installing package(s): "'mxnet~=1.7'", "'gluonts==0.8.0'", "'pandas==1.0.5'", "'numpy'", "'pathlib==1.0.1'", "'ujson==4.0.2'"
MXNet is up to 1.9.0 on pypi so pip should be able to install it. Maybe try changing to 1.9.0.
I think the only available version of mxnet
is 1.6.0 as the error message shows:
ERROR: Could not find a version that satisfies the requirement mxnet~=1.9.0 (from versions: 1.6.0)
ERROR: No matching distribution found for mxnet~=1.9.0
Error: Error installing package(s): "'mxnet~=1.9.0'", "'gluonts==0.8.0'", "'pandas==1.0.5'", "'numpy'", "'pathlib==1.0.1'", "'ujson==4.0.2'"
same here. Any news?
I think the only available version of
mxnet
is 1.6.0 as the error message shows:ERROR: Could not find a version that satisfies the requirement mxnet~=1.9.0 (from versions: 1.6.0) ERROR: No matching distribution found for mxnet~=1.9.0 Error: Error installing package(s): "'mxnet~=1.9.0'", "'gluonts==0.8.0'", "'pandas==1.0.5'", "'numpy'", "'pathlib==1.0.1'", "'ujson==4.0.2'"
Are you using M1? I believe that is the problem.
I got it to work by using the older R & Rstudio that isn’t optimized for M1. Thus using Rosetta. @mdancho84
Error occurs calling
install_gluonts()
on arm64 Mac M1.It seems like there are some pacakges are not available in 3.7 Python channel. The error code is the following:
Using the develope version of
reticulate
pacakge to install miniconda, the Python version is 3.8.12.Here is my python information calling
reticulate::py_discover_config()
Any suggestions? Thanks!