'repl_python()' fails to import python modules to R
I am attempting to use repl_python()
to interactively use python in my R environment. Unfortunately I'm not making much progress. Any ideas? I checked out Importing python module in R but my R environment is connecting to the correct python path (I think).
library(reticulate)
repl_python()
Python 3.7.1 (/anaconda3/envs/r-reticulate/bin/python)
Reticulate 1.10 REPL -- A Python interpreter in R.
>>> import pandas as pd
ModuleNotFoundError: No module named 'pandas'
Here's my R session info:
sessionInfo()
R version 3.5.1 (2018-07-02)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS High Sierra 10.13.6
Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRlapack.dylib
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods
[7] base
other attached packages:
[1] reticulate_1.10
loaded via a namespace (and not attached):
[1] Rcpp_1.0.0 urca_1.3-0 pillar_1.3.0
[4] compiler_3.5.1 plyr_1.8.4 bindr_0.1.1
[7] tseries_0.10-46 tools_3.5.1 xts_0.11-2
[10] jsonlite_1.6 nlme_3.1-137 tibble_1.4.2
[13] gtable_0.2.0 lattice_0.20-35 pkgconfig_2.0.2
[16] rlang_0.3.0.1 Matrix_1.2-14 rstudioapi_0.8
[19] curl_3.2 parallel_3.5.1 bindrcpp_0.2.2
[22] knitr_1.20 dplyr_0.7.8 uroot_2.0-9
[25] lmtest_0.9-36 grid_3.5.1 nnet_7.3-12
[28] forecast_8.4 tidyselect_0.2.5 glue_1.3.0
[31] R6_2.3.0 ggplot2_3.1.0 purrr_0.2.5
[34] TTR_0.23-4 magrittr_1.5 scales_1.0.0
[37] assertthat_0.2.0 quantmod_0.4-13 timeDate_3043.102
[40] colorspace_1.3-2 fracdiff_1.4-2 quadprog_1.5-5
[43] lazyeval_0.2.1 munsell_0.5.0 crayon_1.3.4
[46] zoo_1.8-4
python r reticulate
add a comment |
I am attempting to use repl_python()
to interactively use python in my R environment. Unfortunately I'm not making much progress. Any ideas? I checked out Importing python module in R but my R environment is connecting to the correct python path (I think).
library(reticulate)
repl_python()
Python 3.7.1 (/anaconda3/envs/r-reticulate/bin/python)
Reticulate 1.10 REPL -- A Python interpreter in R.
>>> import pandas as pd
ModuleNotFoundError: No module named 'pandas'
Here's my R session info:
sessionInfo()
R version 3.5.1 (2018-07-02)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS High Sierra 10.13.6
Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRlapack.dylib
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods
[7] base
other attached packages:
[1] reticulate_1.10
loaded via a namespace (and not attached):
[1] Rcpp_1.0.0 urca_1.3-0 pillar_1.3.0
[4] compiler_3.5.1 plyr_1.8.4 bindr_0.1.1
[7] tseries_0.10-46 tools_3.5.1 xts_0.11-2
[10] jsonlite_1.6 nlme_3.1-137 tibble_1.4.2
[13] gtable_0.2.0 lattice_0.20-35 pkgconfig_2.0.2
[16] rlang_0.3.0.1 Matrix_1.2-14 rstudioapi_0.8
[19] curl_3.2 parallel_3.5.1 bindrcpp_0.2.2
[22] knitr_1.20 dplyr_0.7.8 uroot_2.0-9
[25] lmtest_0.9-36 grid_3.5.1 nnet_7.3-12
[28] forecast_8.4 tidyselect_0.2.5 glue_1.3.0
[31] R6_2.3.0 ggplot2_3.1.0 purrr_0.2.5
[34] TTR_0.23-4 magrittr_1.5 scales_1.0.0
[37] assertthat_0.2.0 quantmod_0.4-13 timeDate_3043.102
[40] colorspace_1.3-2 fracdiff_1.4-2 quadprog_1.5-5
[43] lazyeval_0.2.1 munsell_0.5.0 crayon_1.3.4
[46] zoo_1.8-4
python r reticulate
add a comment |
I am attempting to use repl_python()
to interactively use python in my R environment. Unfortunately I'm not making much progress. Any ideas? I checked out Importing python module in R but my R environment is connecting to the correct python path (I think).
library(reticulate)
repl_python()
Python 3.7.1 (/anaconda3/envs/r-reticulate/bin/python)
Reticulate 1.10 REPL -- A Python interpreter in R.
>>> import pandas as pd
ModuleNotFoundError: No module named 'pandas'
Here's my R session info:
sessionInfo()
R version 3.5.1 (2018-07-02)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS High Sierra 10.13.6
Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRlapack.dylib
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods
[7] base
other attached packages:
[1] reticulate_1.10
loaded via a namespace (and not attached):
[1] Rcpp_1.0.0 urca_1.3-0 pillar_1.3.0
[4] compiler_3.5.1 plyr_1.8.4 bindr_0.1.1
[7] tseries_0.10-46 tools_3.5.1 xts_0.11-2
[10] jsonlite_1.6 nlme_3.1-137 tibble_1.4.2
[13] gtable_0.2.0 lattice_0.20-35 pkgconfig_2.0.2
[16] rlang_0.3.0.1 Matrix_1.2-14 rstudioapi_0.8
[19] curl_3.2 parallel_3.5.1 bindrcpp_0.2.2
[22] knitr_1.20 dplyr_0.7.8 uroot_2.0-9
[25] lmtest_0.9-36 grid_3.5.1 nnet_7.3-12
[28] forecast_8.4 tidyselect_0.2.5 glue_1.3.0
[31] R6_2.3.0 ggplot2_3.1.0 purrr_0.2.5
[34] TTR_0.23-4 magrittr_1.5 scales_1.0.0
[37] assertthat_0.2.0 quantmod_0.4-13 timeDate_3043.102
[40] colorspace_1.3-2 fracdiff_1.4-2 quadprog_1.5-5
[43] lazyeval_0.2.1 munsell_0.5.0 crayon_1.3.4
[46] zoo_1.8-4
python r reticulate
I am attempting to use repl_python()
to interactively use python in my R environment. Unfortunately I'm not making much progress. Any ideas? I checked out Importing python module in R but my R environment is connecting to the correct python path (I think).
library(reticulate)
repl_python()
Python 3.7.1 (/anaconda3/envs/r-reticulate/bin/python)
Reticulate 1.10 REPL -- A Python interpreter in R.
>>> import pandas as pd
ModuleNotFoundError: No module named 'pandas'
Here's my R session info:
sessionInfo()
R version 3.5.1 (2018-07-02)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS High Sierra 10.13.6
Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRlapack.dylib
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods
[7] base
other attached packages:
[1] reticulate_1.10
loaded via a namespace (and not attached):
[1] Rcpp_1.0.0 urca_1.3-0 pillar_1.3.0
[4] compiler_3.5.1 plyr_1.8.4 bindr_0.1.1
[7] tseries_0.10-46 tools_3.5.1 xts_0.11-2
[10] jsonlite_1.6 nlme_3.1-137 tibble_1.4.2
[13] gtable_0.2.0 lattice_0.20-35 pkgconfig_2.0.2
[16] rlang_0.3.0.1 Matrix_1.2-14 rstudioapi_0.8
[19] curl_3.2 parallel_3.5.1 bindrcpp_0.2.2
[22] knitr_1.20 dplyr_0.7.8 uroot_2.0-9
[25] lmtest_0.9-36 grid_3.5.1 nnet_7.3-12
[28] forecast_8.4 tidyselect_0.2.5 glue_1.3.0
[31] R6_2.3.0 ggplot2_3.1.0 purrr_0.2.5
[34] TTR_0.23-4 magrittr_1.5 scales_1.0.0
[37] assertthat_0.2.0 quantmod_0.4-13 timeDate_3043.102
[40] colorspace_1.3-2 fracdiff_1.4-2 quadprog_1.5-5
[43] lazyeval_0.2.1 munsell_0.5.0 crayon_1.3.4
[46] zoo_1.8-4
python r reticulate
python r reticulate
asked Jan 1 at 23:45


Cyrus MohammadianCyrus Mohammadian
2,60631943
2,60631943
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53999821%2frepl-python-fails-to-import-python-modules-to-r%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53999821%2frepl-python-fails-to-import-python-modules-to-r%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown