<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    <div class="moz-cite-prefix">Hi all,</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">  If I want to completely remove
      installed anaconda python and associated package,</div>
    <div class="moz-cite-prefix">  Should I use the following command?</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix"> "conda remove --all"</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix"> Thanks</div>
    <div class="moz-cite-prefix"> Tao<br>
    </div>
    <br>
    <div class="moz-cite-prefix">On 4/29/23 10:46 AM, Tao Zhang wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:cf4c6784-3599-47bf-823c-63327d558ec4@colorado.edu">
      
      <div class="moz-cite-prefix"><br>
      </div>
      <div class="moz-cite-prefix"> My .cshrc file is not changed. The
        only changed file is .bash_profile (see 3).</div>
      <div class="moz-cite-prefix"> </div>
      <div class="moz-cite-prefix"> When I start a new terminal, it
        comes with anaconda environments.</div>
      <div class="moz-cite-prefix"><br>
      </div>
      <div class="moz-cite-prefix"> So maybe I have to comment the
        .bash_profile?</div>
      <div class="moz-cite-prefix"> </div>
      <div class="moz-cite-prefix"> Do you use .cshrc or .bashrc file? <br>
      </div>
      <div class="moz-cite-prefix"> Do those "the code between
        >>> conda initialize and <<<< conda
        initialize" appear in  your .cshrc or .bashrc file or other
        file?</div>
      <div class="moz-cite-prefix"><br>
      </div>
      <div class="moz-cite-prefix"> Thanks</div>
      <div class="moz-cite-prefix"> Tao<br>
      </div>
      <div class="moz-cite-prefix"><br>
      </div>
      <div class="moz-cite-prefix">On 4/29/23 10:36 AM, Balthasar
        Indermuehle wrote:<br>
      </div>
      <blockquote type="cite" cite="mid:CAFJZw7abPAXyzWmAXgAkDssy_w_8D5SNUEyTUnUig0x39WijjA@mail.gmail.com">
        <div dir="ltr">
          <div>That's odd. The same procedure works fine for me.<br>
          </div>
          <div><br>
          </div>
          <div>Maybe try this:<br>
          </div>
          <div>Remove or comment the code between >>> conda
            initialize and <<<< conda initialize in the
            .cshrc, .bashrc, or whatever environment you're running.</div>
          <div><br>
          </div>
          <div>Exit the terminal / start a new terminal</div>
          <div><br>
          </div>
          <div>This terminal should not have loaded any anaconda
            environments and whatever python version you had installed
            should be working as before. Where does
            /opt/local/bin/python3 point?</div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div>
            <div>
              <div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">
                <div dir="ltr">
                  <div>
                    <div dir="ltr">
                      <div>
                        <div dir="ltr">
                          <div>
                            <div dir="ltr">
                              <div><span style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">
                                  <div><br>
                                  </div>
                                  Dr Balthasar Indermühle<br>
                                  Inside Systems Pty Ltd</span>
                                <div><span style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">5007/101
                                    Bathurst Street</span></div>
                                <div><span style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">Sydney
                                    NSW 2000, Australia</span></div>
                                <div><span style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">t: <a value="+61427912856" style="color:rgb(17,85,204)" moz-do-not-send="true">+61 (0)405
                                      988 500</a></span></div>
                                <div><font face="arial, sans-serif" color="#222222"><span style="border-collapse:collapse"><br>
                                    </span></font></div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <br>
          </div>
        </div>
        <br>
        <div class="gmail_quote">
          <div dir="ltr" class="gmail_attr">On Sun, 30 Apr 2023 at
            02:27, Tao Zhang <<a href="mailto:tao.zhang@colorado.edu" moz-do-not-send="true" class="moz-txt-link-freetext">tao.zhang@colorado.edu</a>>
            wrote:<br>
          </div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px
            0.8ex;border-left:1px solid
            rgb(204,204,204);padding-left:1ex">
            <div>
              <div>Hi Balthasar & all,</div>
              <div><br>
              </div>
              <div>  After I installed Anaconda python, previous command
                "python3" and abbreviation does not work anymore (see 1)</div>
              <div>  I use .cshrc (see 2) file. I find that
                .bash_profile is changed (see 3).</div>
              <div><br>
              </div>
              <div> I use "conda deactivate" to exit the Anaconda
                python, it does not work (see 4)</div>
              <div><br>
              </div>
              <div> How can I return to previous state in which .cshrc
                and associated command can work if I do not uninstall
                the Anaconda python?</div>
              <div><br>
              </div>
              <div> Thanks</div>
              <div> Tao <br>
              </div>
              <div>  <br>
              </div>
              <div><br>
              </div>
              <div>1) [MacBook-Pro:~] tzhang% python3<br>
                python3: Command not found.<br>
                <br>
              </div>
              <div><br>
              </div>
              <div>2) my .cshrc file<br>
              </div>
              <div>"setenv PATH
                /usr/local/bin:/opt/local/bin:/opt/local/sbin:$PATH"<br>
                <br>
                3)  .bash_profile  after installing Anaconda python<br>
              </div>
              <div>-------------<br>
                # >>> conda initialize >>><br>
                # !! Contents within this block are managed by 'conda
                init' !!<br>
                __conda_setup="$('/Users/tzhang/anaconda3/bin/conda'
                'shell.bash' 'hook' 2> /dev/null)"<br>
                if [ $? -eq 0 ]; then<br>
                    eval "$__conda_setup"<br>
                else<br>
                    if [ -f
                "/Users/tzhang/anaconda3/etc/profile.d/conda.sh" ]; then<br>
                        .
                "/Users/tzhang/anaconda3/etc/profile.d/conda.sh"<br>
                    else<br>
                        export PATH="/Users/tzhang/anaconda3/bin:$PATH"<br>
                    fi<br>
                fi<br>
                unset __conda_setup<br>
                # <<< conda initialize <<<</div>
              <div>-------<br>
              </div>
              <div><br>
              </div>
              <div>4)<br>
              </div>
              <div>[MacBook-Pro:~] tzhang% conda deactivate<br>
                [MacBook-Pro:~] tzhang% python3<br>
                python3: Command not found.<br>
                <br>
              </div>
              <div><br>
              </div>
              <div><br>
              </div>
              <div>On 4/28/23 6:57 PM, Balthasar Indermuehle wrote:<br>
              </div>
              <blockquote type="cite">
                <div dir="auto">The same, so long as your anaconda
                  environment is activated. Type conda activate <env
                  name> to activate </div>
                <div><br>
                  <div class="gmail_quote">
                    <div dir="ltr" class="gmail_attr">On Sat, 29 Apr
                      2023 at 10:49, Tao Zhang <<a href="mailto:tao.zhang@colorado.edu" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">tao.zhang@colorado.edu</a>>
                      wrote:<br>
                    </div>
                    <blockquote class="gmail_quote" style="margin:0px
                      0px 0px 0.8ex;border-left:1px solid
                      rgb(204,204,204);padding-left:1ex">
                      <div>
                        <div>Hi Balthasar,</div>
                        <div><br>
                        </div>
                        <div>  Thanks for your helpful info. <br>
                        </div>
                        <div><br>
                        </div>
                        <div>  For now, I am using  "python3
                          filename.py" to run python code in Mac
                          terminal.</div>
                        <div> </div>
                        <div>  I am asking what's the new command to run
                          python code with Anaconda in the terminal?</div>
                        <div> </div>
                        <div>  Thanks</div>
                      </div>
                      <div>
                        <div>  Tao</div>
                        <div><br>
                        </div>
                        <div><br>
                        </div>
                        <div>On 4/28/23 6:30 PM, Balthasar Indermuehle
                          wrote:<br>
                        </div>
                        <blockquote type="cite">
                          <div dir="ltr">
                            <div>Anaconda/miniconda install themselves
                              into a completely separate directory.<br>
                            </div>
                            <div><br>
                            </div>
                            <div>On installing, it'll offer to add
                              itself to the startup scripts so when you
                              open a terminal, it will automatically
                              load the anaconda/miniconda environment.
                              type "conda deactivate" to exit from that
                              if you want to use your other local python
                              install.</div>
                            <div><br>
                            </div>
                            <div>I personally found myself moving
                              towards anaconda immediately after
                              installing it for the first time. Removes
                              a huge headache of package compatibility
                              issues. Just create a new environment if
                              you need to use a package that doesn't
                              play nice with others.<br>
                            </div>
                            <br>
                          </div>
                          <br>
                          <div class="gmail_quote">
                            <div dir="ltr" class="gmail_attr">On Sat, 29
                              Apr 2023 at 10:13, Tao Zhang <<a href="mailto:tao.zhang@colorado.edu" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">tao.zhang@colorado.edu</a>>
                              wrote:<br>
                            </div>
                            <blockquote class="gmail_quote" style="margin:0px 0px 0px
                              0.8ex;border-left:1px solid
                              rgb(204,204,204);padding-left:1ex">Hi, all<br>
                              <br>
                                 I want to attend a python workshop
                              which requires the installation of <br>
                              Anaconda Python, see the info. below.<br>
                              <br>
                                 Since I have already installed python
                              in my Macbook pro through <br>
                              Macport (see info. below),<br>
                              <br>
                                 I am asking if I still need to install
                              Anaconda Python?<br>
                              <br>
                                 Does this Anaconda Python conflict with
                              the installed Macport python?<br>
                              <br>
                                Thanks<br>
                              <br>
                                Tao<br>
                              <br>
                                /Users/tzhang> which python3<br>
                              /opt/local/bin/python3<br>
                              /Users/tzhang> python3<br>
                              Python 3.9.1 (default, Dec  8 2020,
                              11:52:28)<br>
                              [Clang 10.0.1 (clang-1001.0.46.4)] on
                              darwin<br>
                              Type "help", "copyright", "credits" or
                              "license" for more information.<br>
                               >>><br>
                              <br>
                              -----------------------------<br>
                              <br>
                              commands.<br>
                              9:00 - 10:00<br>
                              Office hours by appointment:
                              Python/Anaconda Troubleshooting and
                              Assistance<br>
                              10:00 - 10:05 (5 min)<br>
                              Welcome and opening remarks<br>
                              Topic<br>
                              Application/Package(s)<br>
                              10:05 - 10:45<br>
                              (40 mins)<br>
                              Topic 1: Getting Started with Python and
                              Jupyter Notebooks<br>
                              Jupyter Notebook<br>
                              NumPy<br>
                              Pandas<br>
                              <br>
                              Notes:<br>
                              • This tutorial is hands on, you will need
                              to have Anaconda (or <br>
                              miniconda) Python installed on your
                              computer prior to the workshop<br>
                              <br>
                              Install Python via Anaconda<br>
                              Install the latest version of Anaconda on
                              your local machine for this <br>
                              tutorial.<br>
                              Need help installing Anaconda? Video
                              tutorial on YouTube. Note: some of <br>
                              the packages in the video might not apply
                              to this workshop. Use the list <br>
                              below.<br>
                              Additional packages: Install the following
                              extra package for Python by <br>
                              going to Start  Anaconda3  Anaconda
                              Prompt (PC Users) or the terminal <br>
                              (Mac/Linux users) and type:<br>
                              conda install -c conda-forge cartopy<br>
                              conda install -c conda-forge h5netcdf<br>
                              conda install -c conda-forge xarray<br>
                              conda install -c conda-forge s3fs<br>
                              <br>
                              Check if the install is successful<br>
                              Launch Jupyter Notebooks from the Anaconda
                              Navigator<br>
                              • PC Users: Go to Start  Anaconda3 
                              Jupyter Notebook<br>
                              • Mac/Linux Users: Type Jupyter notebook
                              into the terminal<br>
                              <br>
                              ---------------<br>
                              <br>
                            </blockquote>
                          </div>
                        </blockquote>
                        <p><br>
                        </p>
                      </div>
                    </blockquote>
                  </div>
                </div>
                <span>-- </span><br>
                <div dir="ltr">
                  <div dir="ltr">
                    <div>
                      <div dir="ltr">
                        <div>
                          <div dir="ltr">
                            <div>
                              <div dir="ltr">
                                <div><span style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">
                                    <div><br>
                                    </div>
                                    Dr Balthasar Indermühle<br>
                                    Inside Systems Pty Ltd</span>
                                  <div><span style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">5007/101
                                      Bathurst Street</span></div>
                                  <div><span style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">Sydney
                                      NSW 2000, Australia</span></div>
                                  <div><span style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">t: <a value="+61427912856" style="color:rgb(17,85,204)" moz-do-not-send="true">+61
                                        (0)405 988 500</a></span></div>
                                  <div><font face="arial, sans-serif" color="#222222"><span style="border-collapse:collapse"><br>
                                      </span></font></div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </blockquote>
              <p><br>
              </p>
            </div>
          </blockquote>
        </div>
      </blockquote>
      <p><br>
      </p>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>