<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body dir="auto">
The conda prompt change is useful to know if/which python environment is active. You could copy the contents of .bash_profile inside .profile right before the macports block, so that macports takes precedence. <br>
<br>
<div dir="ltr"><span style="background-color: rgba(255, 255, 255, 0);">-- <br>
<small>Mircea Trandafir<br>
Associate professor<br>
Department of Business and Economics<br>
University of Southern Denmark<br>
<a href="x-apple-data-detectors://5/0" x-apple-data-detectors="true" x-apple-data-detectors-type="address" x-apple-data-detectors-result="5/0">Campusvej 55, 5230 Odense M</a><br>
<a href="x-apple-data-detectors://5/0" x-apple-data-detectors="true" x-apple-data-detectors-type="address" x-apple-data-detectors-result="5/0">Denmark</a><br>
Email: <a href="mailto:mircea.trandafir@sam.sdu.dk" target="_blank">mircea.trandafir@sam.sdu.dk</a><br>
Web: <a href="http://www.mirceatrandafir.com/" target="_blank">http://www.mirceatrandafir.com</a></small></span></div>
<div dir="ltr"><br>
<blockquote type="cite">On Sep 1, 2021, at 12:53 PM, Ruben Di Battista <rubendibattista@gmail.com> wrote:<br>
<br>
</blockquote>
</div>
<blockquote type="cite">
<div dir="ltr">
<div dir="auto">Conda sera the prompt to help you remembering your within a conda environment. It makes some sort of sense.
<div dir="auto"><br>
</div>
<div dir="auto">But the aggressive environment messing up, for me, is unacceptable. :) </div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Wed, 1 Sep 2021, 11:48 Gerben Wierda via macports-users, <<a href="mailto:macports-users@lists.macports.org">macports-users@lists.macports.org</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word;line-break:after-white-space">What happened was that I used bash, and my env was set in .profile, including my PATH setting for MacPorts. What Anaconda did was create a .bash_profile and the existence of that file prevents .profile
 to be read. Hence MacPorts commands are not available anymore in the shell.
<div><br>
</div>
<div>conda did a lot more (e.g. setting prompt) which I don’t want.</div>
<div><br>
<div>
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;word-wrap:break-word;line-break:after-white-space">
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;word-wrap:break-word;line-break:after-white-space">
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;word-wrap:break-word;line-break:after-white-space">
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;word-wrap:break-word;line-break:after-white-space">
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;word-wrap:break-word;line-break:after-white-space">
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;word-wrap:break-word;line-break:after-white-space">
<div>
<div>Gerben Wierda (<a href="https://www.linkedin.com/in/gerbenwierda" target="_blank" rel="noreferrer">LinkedIn</a>)</div>
<div><a href="https://ea.rna.nl/" target="_blank" rel="noreferrer">R&A Enterprise Architecture</a> (main site)<br>
Book: <a href="https://ea.rna.nl/the-book/" target="_blank" rel="noreferrer">Chess and the Art of Enterprise Architecture</a><br>
Book: <a href="https://ea.rna.nl/the-book-edition-iii/" target="_blank" rel="noreferrer">Mastering ArchiMate</a><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div><br>
<blockquote type="cite">
<div>On 31 Aug 2021, at 17:39, Mircea Trandafir <<a href="mailto:tramir@hotmail.com" target="_blank" rel="noreferrer">tramir@hotmail.com</a>> wrote:</div>
<br>
<div>
<div dir="auto">I have anaconda and Macports installed side-by-side, with different versions of python in each of them. It all runs smoothly, so it can be done. And I also have MacTeX installed separately, again without any issues with interaction with anaconda.
 As Ryan said, w<span>e need more information to figure out what is the problem with your setup. </span><br>
<br>
<div dir="ltr"><span style="background-color:rgba(255,255,255,0)">-- <br>
<small>Mircea Trandafir<br>
Associate professor<br>
Department of Business and Economics<br>
University of Southern Denmark<br>
<a rel="noreferrer">Campusvej 55, 5230 Odense M</a><br>
<a rel="noreferrer">Denmark</a><br>
Email: <a href="mailto:mircea.trandafir@sam.sdu.dk" target="_blank" rel="noreferrer">mircea.trandafir@sam.sdu.dk</a><br>
Web: <a href="http://www.mirceatrandafir.com/" target="_blank" rel="noreferrer">http://www.mirceatrandafir.com</a></small></span></div>
<div dir="ltr"><br>
<blockquote type="cite">On Aug 31, 2021, at 12:54 PM, Ryan Schmidt <<a href="mailto:ryandesign@macports.org" target="_blank" rel="noreferrer">ryandesign@macports.org</a>> wrote:<br>
<br>
</blockquote>
</div>
<blockquote type="cite">
<div dir="ltr"><span>On Aug 30, 2021, at 09:32, Gerben Wierda wrote:</span><br>
<blockquote type="cite"><span></span><br>
</blockquote>
<blockquote type="cite"><span>I had to install Anaconda (Python environment) to collaborate with someone. I installed, but it adapted my shell environment in such a way that I’ve lost MacPorts (and LMTX ConTeXt). Does anybody have experience with the combination
 of Anaconda and MacPorts and what the correct way is to use them side by side?</span><br>
</blockquote>
<span></span><br>
<span>I don't know anything about Anaconda...</span><br>
<span></span><br>
<span>When you say you've "lost MacPorts" does that mean that when you type "port" something it says the command is not found? If so, that means that your PATH environment variable is not set up correctly. When you installed MacPorts, it edited your shell startup
 script (which varies depending on which SHELL you are using) to add the MacPorts paths /opt/local/bin and /opt/local/sbin to PATH, while preserving any other additions you made. Maybe the Anaconda installer also modified the PATH in that same shell startup
 file but did not preserve your other PATH modifications. Or if you are using the Bash shell, which supports I think three possible startup files, maybe Anaconda edited a different one, one which takes precedence and causes Bash to ignore the other startup
 file that contained your MacPorts PATH settings.</span><br>
<span></span><br>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</blockquote>
</div>
</div>
</blockquote>
</body>
</html>