Intel® Tiber Developer Cloud
Help connecting to or getting started on Intel® Tiber Developer Cloud
272 Discussions

Conda command not found

Issam88
Beginner
2,450 Views

Hi, 

I am connecting through VS Code to Ubuntu instance, but for lab1 in MLOps certification I am getting "conda: command not found". When I try conda --version I get the same issue. I am using the standard instance type at creation recommended by the course.

 

Could you please help me identify the issue ?

Instance IP is 100.83.208.30, created on august 20th. 

 

Thank you.

Labels (1)
0 Kudos
14 Replies
Thivagar_Intel
Moderator
2,367 Views

Hi Issam88,

Thank you for reaching out to us.

 

The error you encountered was due to the conda package not being installed properly in your Intel® Developer Cloud (IDC) instance. Please run the command ls ~ to check if the conda package is installed in your IDC instance and share a screenshot of the output.

 

To ensure we can assist you effectively, please provide the following details. If not applicable, please use 'N/A'.

  1. Instance Type:
  2. Instance ID/Resource ID:
  3. Region: us-region-1/us-region-2
  4. Cloud Account ID:
  5. Customer Time Zone: 
  6. Is there any important data stored on the instance?
  7. Can the IDC support team access the instance and perform the required operations to validate or fix an issue if needed?

 

 

Regards,

Thivagar


0 Kudos
Issam88
Beginner
2,361 Views

Hi,

 

I tried installing Conda directly issues, but I kept having an error message about anaconda licence. 

I finally downloaded miniconda on my local laptop, and did scp to transfer it to the instance. Now it is installed on the remote instance, but when trying to execute the command conda env create -f conda.yml of the lab, I get the following error : 

 

(base) ubuntu@mlops-lab:~/certified-developer/MLOps_Professional/lab1/env$ conda env create -f conda.yml
Warning: you have pip-installed dependencies in your environment file, but you do not list pip itself as one of your conda dependencies.  Conda may not use the correct pip to install your packages, and they may end up in the wrong place.  Please add an explicit pip dependency.  I'm adding one for you, but still nagging you.
Channels:
 - defaults
 - conda-forge
Platform: linux-64
Collecting package metadata (repodata.json): failed

CondaHTTPError: HTTP 429 TERMS OF SERVICE RATE LIMIT EXCEEDED for url <https://repo.anaconda.com/pkgs/main/linux-64/repodata.json>
Elapsed: 00:06.107763
CF-RAY: 8b6c67f9d82b27c7-SAN

It seems there is an issue with IP related to the instance. You will find below information you asked (I relaunched a new instance today): 

  1. Instance Type: Small VM - Intel® Xeon 4th Gen ® Scalable processor
  2. Instance ID/Resource ID: 
    e43fdd7e-069d-44a9-9a4d-a1b8d091c8d5
  3. Region: us-region-1/us-region-2 : region-2, as I am getting an error when trying to launch an instance on region-1
  4. Cloud Account ID: 301311364741
  5. Customer Time Zone: Central Europe (Paris)
  6. Is there any important data stored on the instance? No
  7. Can the IDC support team access the instance and perform the required operations to validate or fix an issue if needed? Yes

 

0 Kudos
Thivagar_Intel
Moderator
2,294 Views

Hi Issam88,

 

Yes, you are correct. The error "CondaHTTPError: HTTP 429 TERMS OF SERVICE RATE LIMIT EXCEEDED for url https://repo.anaconda.com/pkgs/main/linux-64/repodata.json" occurred because the IP domain of your Intel® Tiber Developer Cloud(ITDC) instance is blocked by repo.anaconda.com. Please note that only the free repository is blocked. If you have purchased licenses, you should be able to access repo.anaconda.cloud without any restrictions.

 

 

Regards,

Thivagar

 

0 Kudos
Issam88
Beginner
2,276 Views
Hi,

This doesn't seem to be a solution. I am following the MLOps certification, and the labs ask us to use the Intel instance, and execute conda. Why should I subscribe a licence to anaconda, in addition to what I'll already pay for the certification exam? This worked well when I realized the first lab 2 months ago, this error is new.

Could you please get back to me with a concrete and free solution so I can finish the certification preparation?
0 Kudos
Thivagar_Intel
Moderator
2,207 Views

Hi Issam88,

 

Thank you for your patience. As mentioned previously, your instance's access to the "default" channel, which directs to Anaconda's free repository, is blocked. Therefore, please modify the conda.yml file to use the "conda-forge" channel. Please follow these steps to create the conda environment :

 

  1. Navigate to the directory.1.png
  2. Edit the conda.yml file.                                                                       2.png
  3. Replace the "default" channel with the "conda-forge" channel and save the changes.                                                             3.png
  4. Create the conda environment.4.png
  5. Activate the environment.                                                                                                5.png

 

If you encounter any errors with these commands, please run the following commands and share the screenshots of the outputs:

  • ls ~
  • conda info --env
  • conda config --show channels
  • conda config --show-sources

 

 

Regards,

Thivagar

 

0 Kudos
Issam88
Beginner
2,050 Views

Hi,

 

Thanks for your answer. I did as you suggested, I have a based environment active, but I still get the same error when trying to create a new one. Here are the results of the suggested commands : 

 

(base) ubuntu@mlops-lab:~/certified-developer/MLOps_Professional/lab1/env$ ls ~
Miniconda3-latest-Linux-x86_64.sh certified-developer miniconda3


(base) ubuntu@mlops-lab:~/certified-developer/MLOps_Professional/lab1/env$ conda info --env
# conda environments:
#
base * /home/ubuntu/miniconda3

(base) ubuntu@mlops-lab:~/certified-developer/MLOps_Professional/lab1/env$ conda config --show channels
channels:
- conda-forge
- defaults


(base) ubuntu@mlops-lab:~/certified-developer/MLOps_Professional/lab1/env$ conda config --show-sources
==> /home/ubuntu/.condarc <==
channel_priority: strict
channels:
- conda-forge
- defaults

It seems it does have the conda-forge channel, and that order is strictly respected (i guess with conda-forge tried first), a (base) environment active, but I still get this error : 

 

(base) ubuntu@mlops-lab:~/certified-developer/MLOps_Professional/lab1/env$ conda env create -f conda.yml
Warning: you have pip-installed dependencies in your environment file, but you do not list pip itself as one of your conda dependencies. Conda may not use the correct pip to install your packages, and they may end up in the wrong place. Please add an explicit pip dependency. I'm adding one for you, but still nagging you.
Channels:
- conda-forge
- defaults
Platform: linux-64
Collecting package metadata (repodata.json): failed

CondaHTTPError: HTTP 429 TERMS OF SERVICE RATE LIMIT EXCEEDED for url <https://repo.anaconda.com/pkgs/main/linux-64/repodata.json>
Elapsed: 00:06.105952
CF-RAY: 8b81da09c9fc27db-SAN

It has been determined that you are in violation of the Anaconda terms of service, and may not be licensed for usage.

0 Kudos
Issam88
Beginner
2,050 Views

Hi,

 

I tried the suggested solution but I still get the same error, though a (base) environment seems to have been created.

 

(base) ubuntu@mlops-lab:~/certified-developer/MLOps_Professional/lab1/env$ conda env create -f conda.yml
Warning: you have pip-installed dependencies in your environment file, but you do not list pip itself as one of your conda dependencies. Conda may not use the correct pip to install your packages, and they may end up in the wrong place. Please add an explicit pip dependency. I'm adding one for you, but still nagging you.
Channels:
- conda-forge
- defaults
Platform: linux-64
Collecting package metadata (repodata.json): failed

CondaHTTPError: HTTP 429 TERMS OF SERVICE RATE LIMIT EXCEEDED for url <https://repo.anaconda.com/pkgs/main/linux-64/repodata.json>
Elapsed: 00:06.096017
CF-RAY: 8b830a15186d27c7-SAN

It has been determined that you are in violation of the Anaconda terms of service, and may not be licensed for usage.

 

Here is the output of the suggested commands: 

(base) ubuntu@mlops-lab:~/certified-developer/MLOps_Professional/lab1/env$ ls ~
Miniconda3-latest-Linux-x86_64.sh certified-developer miniconda3

 

(base) ubuntu@mlops-lab:~/certified-developer/MLOps_Professional/lab1/env$ conda info --env
# conda environments:
#
base * /home/ubuntu/miniconda3

 

(base) ubuntu@mlops-lab:~/certified-developer/MLOps_Professional/lab1/env$ conda config --show channels
channels:
- conda-forge
- defaults

 

(base) ubuntu@mlops-lab:~/certified-developer/MLOps_Professional/lab1/env$ conda config --show-sources
==> /home/ubuntu/.condarc <==
channel_priority: strict
channels:
- conda-forge
- defaults

 

0 Kudos
Issam88
Beginner
2,050 Views

Hi,

 

I tried the suggested solution but I still get the same error, though a (base) environment seems to have been created.

 

(base) ubuntu@mlops-lab:~/certified-developer/MLOps_Professional/lab1/env$ conda env create -f conda.yml
Warning: you have pip-installed dependencies in your environment file, but you do not list pip itself as one of your conda dependencies. Conda may not use the correct pip to install your packages, and they may end up in the wrong place. Please add an explicit pip dependency. I'm adding one for you, but still nagging you.
Channels:
- conda-forge
- defaults
Platform: linux-64
Collecting package metadata (repodata.json): failed

CondaHTTPError: HTTP 429 TERMS OF SERVICE RATE LIMIT EXCEEDED for url <https://repo.anaconda.com/pkgs/main/linux-64/repodata.json>
Elapsed: 00:06.096017
CF-RAY: 8b830a15186d27c7-SAN

It has been determined that you are in violation of the Anaconda terms of service, and may not be licensed for usage.

0 Kudos
Issam88
Beginner
2,050 Views

Hi,

 

I tried the suggested solution but I still get the same error, though a (base) environment seems to have been created.

 

(base) ubuntu@mlops-lab:~/certified-developer/MLOps_Professional/lab1/env$ conda env create -f conda.yml
Warning: you have pip-installed dependencies in your environment file, but you do not list pip itself as one of your conda dependencies. Conda may not use the correct pip to install your packages, and they may end up in the wrong place. Please add an explicit pip dependency. I'm adding one for you, but still nagging you.
Channels:
- conda-forge
- defaults
Platform: linux-64
Collecting package metadata (repodata.json): failed

CondaHTTPError: HTTP 429 TERMS OF SERVICE RATE LIMIT EXCEEDED for url <https://repo.anaconda.com/pkgs/main/linux-64/repodata.json>
Elapsed: 00:06.096017
CF-RAY: 8b830a15186d27c7-SAN

It has been determined that you are in violation of the Anaconda terms of service, and may not be licensed for usage.

 

0 Kudos
Issam88
Beginner
2,050 Views

Hi,

 

I tried the suggested solution but I still get the same error, though a (base) environment seems to have been created.

 

(base) ubuntu@mlops-lab:~/certified-developer/MLOps_Professional/lab1/env$ conda env create -f conda.yml
Warning: you have pip-installed dependencies in your environment file, but you do not list pip itself as one of your conda dependencies. Conda may not use the correct pip to install your packages, and they may end up in the wrong place. Please add an explicit pip dependency. I'm adding one for you, but still nagging you.
Channels:
- conda-forge
- defaults
Platform: linux-64
Collecting package metadata (repodata.json): failed

CondaHTTPError: HTTP 429 TERMS OF SERVICE RATE LIMIT EXCEEDED for url <https://repo.anaconda.com/pkgs/main/linux-64/repodata.json>
Elapsed: 00:06.096017
CF-RAY: 8b830a15186d27c7-SAN

It has been determined that you are in violation of the Anaconda terms of service, and may not be licensed for usage.

 

Here is the output of the suggested commands: 

(base) ubuntu@mlops-lab:~/certified-developer/MLOps_Professional/lab1/env$ ls ~
Miniconda3-latest-Linux-x86_64.sh certified-developer miniconda3

 

(base) ubuntu@mlops-lab:~/certified-developer/MLOps_Professional/lab1/env$ conda info --env
# conda environments:
#
base * /home/ubuntu/miniconda3

 

(base) ubuntu@mlops-lab:~/certified-developer/MLOps_Professional/lab1/env$ conda config --show channels
channels:
- conda-forge
- defaults

 

(base) ubuntu@mlops-lab:~/certified-developer/MLOps_Professional/lab1/env$ conda config --show-sources
==> /home/ubuntu/.condarc <==
channel_priority: strict
channels:
- conda-forge
- defaults

0 Kudos
Issam88
Beginner
2,151 Views

 

Here is the output of the suggested commands: 

(base) ubuntu@mlops-lab:~/certified-developer/MLOps_Professional/lab1/env$ ls ~
Miniconda3-latest-Linux-x86_64.sh certified-developer miniconda3

 

(base) ubuntu@mlops-lab:~/certified-developer/MLOps_Professional/lab1/env$ conda info --env
# conda environments:
#
base * /home/ubuntu/miniconda3

 

(base) ubuntu@mlops-lab:~/certified-developer/MLOps_Professional/lab1/env$ conda config --show channels
channels:
- conda-forge
- defaults

 

(base) ubuntu@mlops-lab:~/certified-developer/MLOps_Professional/lab1/env$ conda config --show-sources
==> /home/ubuntu/.condarc <==
channel_priority: strict
channels:
- conda-forge
- defaults

0 Kudos
Issam88
Beginner
2,053 Views

I tried the suggested solution, but still getting the same error.

 

Channels:
- conda-forge
- defaults
Platform: linux-64
Collecting package metadata (repodata.json): failed

CondaHTTPError: HTTP 429 TERMS OF SERVICE RATE LIMIT EXCEEDED for url <https://repo.anaconda.com/pkgs/main/linux-64/repodata.json>
Elapsed: 00:06.107853
CF-RAY: 8b8317e68ed96a31-SAN

0 Kudos
Thivagar_Intel
Moderator
1,880 Views

Hi Issam88,

 

Thank you for the information. From the screenshot you provided, it seems that Miniconda3 and the conda-forge channel are already set up on your instance. However, the error you encountered appears to be related to the Miniconda3 installer. Please follow these steps to uninstall conda from your instance:

 

  1. Run rm -rf ~/miniconda3 to remove the entire Miniconda3 installation directory (adjust the path if your installation location differs).
  2. Run conda init --reverse to undo changes to shell initialization scripts.
  3. Run rm -rf ~/.condarc ~/.conda ~/.continuum to remove the hidden files and folders that may have been created in your home directory.
  4. Exit and relaunch your instance.

 

Next, use the Miniforge3 installer, which defaults to the conda-forge channel. Please follow these steps to install conda using the Miniforge3 installer:

 

  1. Run wget -O Miniforge3.sh "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh" to download the Miniforge3 installer.
  2. Run bash Miniforge3.sh to install Miniforge3.
  3. Run source ~/.bashrc to reload your shell configuration.
  4. Run conda --version to verify the version of conda installed.

 

After completing these steps, please proceed to create your conda environment and install the necessary packages.

 

 

Regards,

Thivagar


0 Kudos
Thivagar_Intel
Moderator
1,391 Views

Hi Issam88,

 

This thread will no longer be monitored since we have provided a solution. If you need any additional information from Intel, please submit a new question.

 

 

Regards,

Thivagar


0 Kudos
Reply