Hi everyone,
I have tried to install python libraries from R using the reticulate::py_install()
function for the first time (I usually use pip3 from a system terminal) and I'm getting this error.
library(reticulate)
use_python("/usr/bin/python3")
py_install("pandas")
#> Using virtual environment 'r-reticulate' ...
#> sh: 1: /home/andres/.virtualenvs/r-reticulate/bin/pip: not found
#> Error: Error installing package(s): 'pip'
#> Warning in system2(pip, args): error in running command
Does any one have experienced a similar problem? python3 uses pip3 instead of pip, do I have to specify this somewhere?
I'm using RStudio Server 1.2.1329 and here is my
sessionInfo
sessionInfo()
#> R version 3.5.3 (2019-03-11)
#> Platform: x86_64-pc-linux-gnu (64-bit)
#> Running under: Ubuntu 18.04.2 LTS
#>
#> Matrix products: default
#> BLAS: /usr/lib/x86_64-linux-gnu/openblas/libblas.so.3
#> LAPACK: /usr/lib/x86_64-linux-gnu/libopenblasp-r0.2.20.so
#>
#> locale:
#> [1] LC_CTYPE=es_US.UTF-8 LC_NUMERIC=C
#> [3] LC_TIME=es_US.UTF-8 LC_COLLATE=es_US.UTF-8
#> [5] LC_MONETARY=es_US.UTF-8 LC_MESSAGES=es_US.UTF-8
#> [7] LC_PAPER=es_US.UTF-8 LC_NAME=C
#> [9] LC_ADDRESS=C LC_TELEPHONE=C
#> [11] LC_MEASUREMENT=es_US.UTF-8 LC_IDENTIFICATION=C
#>
#> attached base packages:
#> [1] stats graphics grDevices utils datasets methods base
#>
#> other attached packages:
#> [1] reticulate_1.11.1
#>
#> loaded via a namespace (and not attached):
#> [1] Rcpp_1.0.1 lattice_0.20-38 ps_1.3.0 withr_2.1.2 digest_0.6.18 R6_2.4.0
#> [7] grid_3.5.3 jsonlite_1.6 reprex_0.2.1 evaluate_0.13 rlang_0.3.1 fs_1.2.6
#> [13] callr_3.2.0 whisker_0.3-2 Matrix_1.2-16 rmarkdown_1.12 tools_3.5.3 processx_3.3.0
#> [19] xfun_0.5 compiler_3.5.3 clipr_0.5.0 htmltools_0.3.6 knitr_1.22