<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div class="moz-cite-prefix">Hi Balthasar & all,</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix"> After I installed Anaconda python,
previous command "python3" and abbreviation does not work anymore
(see 1)</div>
<div class="moz-cite-prefix"> I use .cshrc (see 2) file. I find
that .bash_profile is changed (see 3).</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix"> I use "conda deactivate" to exit the
Anaconda python, it does not work (see 4)</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix"> 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 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"><br>
</div>
<div class="moz-cite-prefix">1) [MacBook-Pro:~] tzhang% python3<br>
python3: Command not found.<br>
<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">2) my .cshrc file<br>
</div>
<div class="moz-cite-prefix">"setenv PATH
/usr/local/bin:/opt/local/bin:/opt/local/sbin:$PATH"<br>
<br>
3) .bash_profile after installing Anaconda python<br>
</div>
<div class="moz-cite-prefix">-------------<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 class="moz-cite-prefix">-------<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">4)<br>
</div>
<div class="moz-cite-prefix">[MacBook-Pro:~] tzhang% conda
deactivate<br>
[MacBook-Pro:~] tzhang% python3<br>
python3: Command not found.<br>
<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">On 4/28/23 6:57 PM, Balthasar
Indermuehle wrote:<br>
</div>
<blockquote type="cite" cite="mid:CAFJZw7aBjgGdpE3Yie2OPtgrQU3Gf0hjMm4euvoGbs1EHz+nbg@mail.gmail.com">
<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" moz-do-not-send="true" class="moz-txt-link-freetext">tao.zhang@colorado.edu</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;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 class="gmail_signature_prefix">-- </span><br>
<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>
</blockquote>
<p><br>
</p>
</body>
</html>