Intel® Distribution for Python*
Engage in discussions with community peers related to Python* applications and core computational packages.
424 Discussions

How to repair on macOS 13.5 a CONDA installlation with valid intelpython setup ?

cpetit
Beginner
1,946 Views

I have a good installation regarding `Intel python3.9` with all modules loading perfectly.

However, I have a bad behavior with the `conda` part of Intel OneAPI : I can't even do a `$ conda list` or a `$ conda env list` , I get the following message :


$ conda env list
__conda_exe:2: no such file or directory: /opt/intel/oneapi/intelpython/latest/bin/conda

So I have done the following export :

export CONDA_EXE=/opt/intel/oneapi/intelpython/latest/condabin/conda

And I redo the previous command, I get :

$ conda list
Traceback (most recent call last):
File "/opt/intel/oneapi/intelpython/latest/condabin/conda", line 12, in <module>
from conda.cli import main
ModuleNotFoundError: No module named 'conda'

I don't know what to do further to fix this Intel Conda installation.

If someone have already met this kind of issue of could see what's wrong ... I would like to avoid to remove all the Intel python distribution part.

**EDIT :** I forgot to mention that I have into my ~/.zshrc this part :

# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/opt/intel/oneapi/intelpython/latest/condabin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/opt/intel/oneapi/intelpython/latest/etc/profile.d/conda.sh" ]; then
. "/opt/intel/oneapi/intelpython/latest/etc/profile.d/conda.sh"
else
export PATH="/opt/intel/oneapi/intelpython/latest/bin:$PATH"
fi
fi
unset __conda_setup

 

0 Kudos
1 Solution
asin
Moderator
1,738 Views

Hi Chris,


To clarify, you're calling conda from:

/opt/intel/oneapi/intelpython/latest/condabin/conda


It is calling from Intel Distribution for Python, which is not supported according to the system requirements, along with all components of AI Kit.


To get conda working again, you need to launch a terminal without sourcing the oneAPI AI Kit setvars.sh script. Then when you type "which conda" it should show something like this, just as an example:

/home/<USER>/miniconda3/bin/conda


Best,

Alex


View solution in original post

0 Kudos
6 Replies
AthiraM_Intel
Moderator
1,908 Views

Hi,


Thank you for posting in Intel Communities.


We are checking on this internally, we will get back to you with an update.



Thanks


0 Kudos
asin
Moderator
1,788 Views

Hi Chris,


You are trying to use Intel Distribution for Python's conda on MacOS. MacOS is not supported on oneAPI AI Analytics Toolkit 2023.2: https://www.intel.com/content/www/us/en/developer/articles/system-requirements/intel-oneapi-ai-analytics-toolkit-system-requirements.html


I recommend using the regular conda installed on your system.


Best,

Alex


0 Kudos
cpetit
Beginner
1,776 Views

Hello,

As I said, my current conda installation is not good.

Here the output of :

 

$ conda list

Traceback (most recent call last):
File "/opt/intel/oneapi/intelpython/latest/condabin/conda", line 12, in <module>
from conda.cli import main
ModuleNotFoundError: No module named 'conda'

 

How to fix that ?

 

Which version of Conda are talking about when you say :

 


@asin wrote:

Hi Chris,

 

You are trying to use Intel Distribution for Python's conda on MacOS. MacOS is not supported on oneAPI AI Analytics Toolkit 2023.2: https://www.intel.com/content/www/us/en/developer/articles/system-requirements/intel-oneapi-ai-analytics-toolkit-system-requirements.html

 

I recommend using the regular conda installed on your system.

 

Best,

Alex





 

?

0 Kudos
asin
Moderator
1,739 Views

Hi Chris,


To clarify, you're calling conda from:

/opt/intel/oneapi/intelpython/latest/condabin/conda


It is calling from Intel Distribution for Python, which is not supported according to the system requirements, along with all components of AI Kit.


To get conda working again, you need to launch a terminal without sourcing the oneAPI AI Kit setvars.sh script. Then when you type "which conda" it should show something like this, just as an example:

/home/<USER>/miniconda3/bin/conda


Best,

Alex


0 Kudos
asin
Moderator
1,660 Views

Hi Chris, I have not heard from you in a while. If I don't hear back in 5 business days, I will be closing this ticket.


Best,

Alex


0 Kudos
asin
Moderator
1,565 Views

Hi Chris,


Since I got no response from you, I am closing this ticket. If you have a new issue, please submit a new ticket.


Thanks,

Alex


0 Kudos
Reply