(base) daddy@localhost:~$ (base) daddy@localhost:~$ ./Miniconda3-latest-Linux-aarch64.sh…
- User
(base) daddy@localhost:~ ./Miniconda3-latest-Linux-aarch64.sh -b -p /home/daddy/miniconda3 PREFIX=/home/daddy/miniconda3 Unpacking payload ...
Installing base environment...
Preparing transaction: ...working... done Executing transaction: ...working... done ERROR conda.core.link:_execute(950): An error occurred while installing package 'defaults::python-3.12.4-h8edadfe_1'. Rolling back transaction: ...working... done
[Errno 2] No such file or directory: '/home/daddy/miniconda3/pkgs/python-3.12.4-h8edadfe_1/lib/python3.12/phello/init.py' ()
(base) daddy@localhost:~$
- Assistant
It appears that you're encountering an error while installing Miniconda3 on your Linux
aarch64system. The error message indicates that a specific file is missing during the installation of the Python 3.12.4 package:[Errno 2] No such file or directory: '/home/daddy/miniconda3/pkgs/python-3.12.4-h8edadfe_1/lib/python3.12/__phello__/__init__.py'This suggests that there's an issue with the Python 3.12.4 package in the Miniconda installer for
aarch64. Here's how you can address this problem:Possible Causes and Solutions
-
Issue with Python 3.12 Support in Conda:
- Python 3.12 is relatively new (released in October 2023), and there might be compatibility issues or bugs in the Conda packaging for this version, especially on the
aarch64architecture. - Solution: Use an earlier version of Python that is stable and well-supported.
- Python 3.12 is relatively new (released in October 2023), and there might be compatibility issues or bugs in the Conda packaging for this version, especially on the
-
Corrupted Installer File:
- The installer file you downloaded might be corrupted.
- Solution: Re-download the Miniconda installer and verify its integrity.
Recommended Steps
1. Remove the Existing Miniconda Directory (if any):
Before proceeding, make sure to remove any partially installed Miniconda directories to avoid conflicts.
rm -rf /home/daddy/miniconda32. Download an Earlier Version of Miniconda with Python 3.11:
Since Python 3.12 may have compatibility issues, it's advisable to use Python 3.11 for now.
-
Download Link for Miniconda3 with Python 3.11 for Linux
aarch64:You can download a specific version of Miniconda that comes with Python 3.11 from the official repository:
wget https://repo.anaconda.com/miniconda/Miniconda3-py311_23.5.2-0-Linux-aarch64.sh
3. Install Miniconda with Python 3.11:
bash Miniconda3-py311_23.5.2-0-Linux-aarch64.sh -b -p /home/daddy/miniconda3- The
-bflag runs the installer in batch mode without interactive input. - The
-pflag specifies the installation prefix.
4. Initialize Conda:
After installation, initialize Conda for your shell.
/home/daddy/miniconda3/bin/conda init5. Restart Your Shell Session:
Close and reopen your terminal, or source your shell configuration:
source ~/.bashrc # Or source the relevant shell configuration file6. Verify the Installation:
Ensure that Conda is installed and the default Python version is 3.11.
conda --version python --version7. Avoid Updating to Python 3.12 for Now:
When updating or creating new environments, specify Python 3.11 to avoid upgrading to Python 3.12 until the compatibility issues are resolved.
conda create -n myenv python=3.11Additional Tips
- Report the Issue:
- If you have time, consider reporting this issue to the Conda or Anaconda developers so they can address it in future releases.
- Stay Updated:
- Keep an eye on updates from Conda regarding Python 3.12 support on the
aarch64architecture.
- Keep an eye on updates from Conda regarding Python 3.12 support on the
Summary
The error you're experiencing is likely due to compatibility issues with Python 3.12 on the
aarch64architecture in the current Miniconda installer. By using a version of Miniconda that includes Python 3.11, you should be able to install it without any issues.
Let me know if you need further assistance or if you have any questions!
-