Tmux uses different python

Hi guys,

My issue is that when I open tmux to run a script, few of the software I am running it’s in a different version that it suppose to be. When I type in ‘which python’ in tmux I get: /home/linuxbrew/.linuxbrew/bin/python. However when I am off tmux my python source is /home/ubuntu/miniconda3/bin/python.

I know it should be possible to set up a new path but tmux is stored in /usr/bin/tmux and I do not have access (probably for a good reason)

Thanks,

Jesus

Hi, you probably need to source your bash configuration like

source $HOME/.bashrc

this assumes that in ~/.bashrc the Miniconda installer added some lines, which is an optional step at the end of the installation. If the previouse step alone does not work, try also:

conda activate base

PS: The file you mention is tmux itself and there’s no need to do anything to it. On the other hand, you can always add a directory to your path with

export PATH="/path/to/my/dir:$PATH"

Is this of any help?
Best
Andrea

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.