13th August 2024

How to install python with conda in arch?

Installation of python-conda does not work because of issue 


```

 Imported target "pybind11::headers" includes non-existent path

```


described in  can check versions of conda here:


option is download:  can read more about ecosystem on  your .zshrc you will see


```

# >>> conda initialize >>>

# !! Contents within this block are managed by 'conda init' !!

__conda_setup="$('/home/daniel/.anaconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"

if [ $? -eq 0 ]; then

  eval "$__conda_setup"

else

  if [ -f "/home/daniel/.anaconda3/etc/profile.d/conda.sh" ]; then

    . "/home/daniel/.anaconda3/etc/profile.d/conda.sh"

  else

    export PATH="/home/daniel/.anaconda3/bin:$PATH"

  fi

fi

unset __conda_setup

# <<< conda initialize <<<

```


It is recommended to avoid base env as default


```

conda config --set auto_activate_base false

```


## Activation new env


Lets assume, we will work on project called `ir`. We will create env by:


```

conda create --name ir

```


and activate it by


```

conda activate ir

```


To install packages:


```

conda install --file requirements.txt

```