Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Led_Zepplin

macrumors newbie
Original poster
Jul 22, 2021
3
0
I am quite new to Macs, but not new to Linux, Unix and MS Windows. i am using a Apple MacBook Air M1 with an M1 processor.

I would like to know how to change the path in Big Sur 11.5 and in addition how to make it permanent. I want to last more than one session. iI I log off and then log back on, I still want the new path there.

Also, since I am working a lot in Miniforge and Conda, I need to also be able to do it in virtual environments.

Any help appreciated. Thanks in advance.

Respectfully,

LZ
 
I think you want to change the PATH environment variable in the shell (Terminal.app), is that right?

Before Big Sur, bash was the default shell and that's what I'm familiar with. I set my PATH in the file '~/.bashrc' with these lines:

Code:
# Add the current directory and my own ~/bin to the front of $PATH
PATH=.:~/bin:$PATH
export PATH

I think with Big Sur the default shell changed to zsh, though. If so look for an analogous (hidden) file in your home directory... maybe '.zshrc'.
 
I would rather create a virtual environment called say testcv2 and install cv2 there. I do not want to install it in the shell. That would not be wise. If I install cv2 in the virtual environment and something goes wrong, I can always delete the virtual environment and start again. I cannot do that if I install in the base or shell. The base shell cannot be deleted.

So I want to install it a virtual environment which I have already created. I also want to change the path there - in the testcv2 virtual environment.

Again, if something goes wrong then I can always delete the testcv2 virtual environment an start again.

Please, i just do not know how to change the path in the virtual environment.

How do I do it.

Respectfully,

LZ
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.