Skip to content

Using python through reticulate in mac arm64

3 messages · Manuel Spínola, rsparapa at mcw.edu, Carlos Ortega

#
Dear R-Sig-Mac community,

I did

library(reticulate)

install_miniconda()

Now, when I try this in the mac terminal

conda --version

-bash: conda: command not found



RStudio ask to update conda with



==> WARNING: A newer version of conda exists. <==
  current version: 23.3.1
  latest version: 23.7.3


Please update conda by running

    $ conda update -n base -c conda-forge conda

Or to minimize the number of packages updated during conda update use

     conda install conda=23.7.3




I wrote in my terminal:


conda update -n base -c conda-forge conda

-bash: conda: command not found



How can I solve this?
#
Hi Manuel:

It looks like conda is not in your PATH.  However, I would not
use conda for R.  You can install python packages, etc.
but do NOT install R with it.  My student tried that and it is a
disaster.  Stick to CRAN and mac.r-project.org only.
Also, don?t use RStudio: use emacs ;o)

--
Rodney Sparapani, Associate Professor of Biostatistics, He/Him/His
Vice President, Wisconsin Chapter of the American Statistical Association
Institute for Health and Equity, Division of Biostatistics
Medical College of Wisconsin, Milwaukee Campus

From: R-SIG-Mac <r-sig-mac-bounces at r-project.org> on behalf of Manuel Sp?nola <mspinola10 at gmail.com>
Date: Thursday, September 7, 2023 at 5:44 PM
To: R-Sig-Mac <r-sig-mac at r-project.org>
Subject: [R-SIG-Mac] Using python through reticulate in mac arm64
ATTENTION: This email originated from a sender outside of MCW. Use caution when clicking on links or opening attachments.
________________________________

Dear R-Sig-Mac community,

I did

library(reticulate)

install_miniconda()

Now, when I try this in the mac terminal

conda --version

-bash: conda: command not found



RStudio ask to update conda with



==> WARNING: A newer version of conda exists. <==
  current version: 23.3.1
  latest version: 23.7.3


Please update conda by running

    $ conda update -n base -c conda-forge conda

Or to minimize the number of packages updated during conda update use

     conda install conda=23.7.3




I wrote in my terminal:


conda update -n base -c conda-forge conda

-bash: conda: command not found



How can I solve this?




--
*Manuel Sp?nola, Ph.D.*
Instituto Internacional en Conservaci?n y Manejo de Vida Silvestre
Universidad Nacional
Apartado 1350-3000
Heredia
COSTA RICA
mspinola at una.cr <mspinola at una.ac.cr>
mspinola10 at gmail.com
Tel?fono: (506) 8706 - 4662
Sitio web institucional: ICOMVIS
<https://urldefense.com/v3/__http://www.icomvis.una.ac.cr/index.php/manuel__;!!H8mHWRdzp34!52ITun_Gatx5Yyj2E2jskZhoV0Dj26fvQLhj9YT7-kjIcaSNR1eBxGGMm1tb0KI-BOBBUYehlmqLVI2r_Ao$ >
Sitio web personal: Sitio personal <https://urldefense.com/v3/__https://mspinola-sitioweb.netlify.app__;!!H8mHWRdzp34!52ITun_Gatx5Yyj2E2jskZhoV0Dj26fvQLhj9YT7-kjIcaSNR1eBxGGMm1tb0KI-BOBBUYehlmqL1LaG3ZA$ >
Blog sobre Ciencia de Datos: Blog de Ciencia de Datos
<https://urldefense.com/v3/__https://mspinola-ciencia-de-datos.netlify.app__;!!H8mHWRdzp34!52ITun_Gatx5Yyj2E2jskZhoV0Dj26fvQLhj9YT7-kjIcaSNR1eBxGGMm1tb0KI-BOBBUYehlmqLoN5V2FU$ >


_______________________________________________
R-SIG-Mac mailing list
R-SIG-Mac at r-project.org
https://urldefense.com/v3/__https://stat.ethz.ch/mailman/listinfo/r-sig-mac__;!!H8mHWRdzp34!52ITun_Gatx5Yyj2E2jskZhoV0Dj26fvQLhj9YT7-kjIcaSNR1eBxGGMm1tb0KI-BOBBUYehlmqLIFVTvGg$<https://urldefense.com/v3/__https:/stat.ethz.ch/mailman/listinfo/r-sig-mac__;!!H8mHWRdzp34!52ITun_Gatx5Yyj2E2jskZhoV0Dj26fvQLhj9YT7-kjIcaSNR1eBxGGMm1tb0KI-BOBBUYehlmqLIFVTvGg$>
#
Hi Manuel,

I have also a Mac (ARM) and before that a Mac (Intel) and I always proceed
in the other way around.


   - Download Miniconda for your Mac ARM and install it.
      -  https://docs.conda.io/projects/miniconda/en/latest/
      - It is also possible to install it via homebrew (brew install --cask
      miniconda)
   - When you install it, it automatically will create an environment
   ("base") for you, plus also, it will update your .zhrc or your .profile
   with the right $PATH variable.
   - Now you can create (via CLI) a new environment in a Terminal. I prefer
   this rather than Anaconda's GUI.
   - "conda create --name your_environ_name python=your_python_version"
      - Activate this environment (conda activate your_environ_name)
      - And install the packages you need, either with "pip" or with
      "conda".
   - You can repeat these steps to create new environments.


Now, you have this, you can say to RStudio to use this just created
environment.

   - Tools > Global Options > Python
   - And  under Python, it automatically will show you all the different
   python versions installed in your machine, and also if you have an
   environment. In this list should appear your environment.

If you have issues, we can follow with this conversation in the R-Help-es
(in Spanish)....

Thanks,
Carlos Ortega
On Fri, Sep 8, 2023 at 12:43?AM Manuel Sp?nola <mspinola10 at gmail.com> wrote: