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.

--
Mircea Trandafir
Associate professor
Department of Business and Economics
University of Southern Denmark
Campusvej 55, 5230 Odense M<x-apple-data-detectors://5/0>
Denmark<x-apple-data-detectors://5/0>
Email: [email protected]<mailto:[email protected]>
Web: http://www.mirceatrandafir.com<http://www.mirceatrandafir.com/>

On Sep 1, 2021, at 12:53 PM, Ruben Di Battista <[email protected]> 
wrote:


Conda sera the prompt to help you remembering your within a conda environment. 
It makes some sort of sense.

But the aggressive environment messing up, for me, is unacceptable. :)

On Wed, 1 Sep 2021, 11:48 Gerben Wierda via macports-users, 
<[email protected]<mailto:[email protected]>> 
wrote:
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.

conda did a lot more (e.g. setting prompt) which I don’t want.

Gerben Wierda (LinkedIn<https://www.linkedin.com/in/gerbenwierda>)
R&A Enterprise Architecture<https://ea.rna.nl/> (main site)
Book: Chess and the Art of Enterprise Architecture<https://ea.rna.nl/the-book/>
Book: Mastering ArchiMate<https://ea.rna.nl/the-book-edition-iii/>

On 31 Aug 2021, at 17:39, Mircea Trandafir 
<[email protected]<mailto:[email protected]>> wrote:

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, we need more information to figure out what is the 
problem with your setup.

--
Mircea Trandafir
Associate professor
Department of Business and Economics
University of Southern Denmark
Campusvej 55, 5230 Odense M
Denmark
Email: [email protected]<mailto:[email protected]>
Web: http://www.mirceatrandafir.com<http://www.mirceatrandafir.com/>

On Aug 31, 2021, at 12:54 PM, Ryan Schmidt 
<[email protected]<mailto:[email protected]>> wrote:

On Aug 30, 2021, at 09:32, Gerben Wierda wrote:

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?

I don't know anything about Anaconda...

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.


Reply via email to