This guide provides step-by-step instructions for setting up the FluxPipeline project using Anaconda. Anaconda helps manage Python environments and dependencies efficiently.
- Anaconda Setup Guide for FluxPipeline
- Internet Connection: Required to download Anaconda and project dependencies.
- Administrator Rights: May be needed for installation on some systems.
Download and install Anaconda appropriate for your operating system.
-
Download Installer:
- Go to the Anaconda Distribution page.
- Click on Download for Windows.
-
Run the Installer:
- Double-click the downloaded
.exe
file. - Follow the prompts in the setup wizard.
- Double-click the downloaded
-
Add Anaconda to PATH (Optional but Recommended):
- During installation, check the option Add Anaconda to my PATH environment variable.
Explanation: This allows you to use
conda
commands from any command prompt. -
Complete Installation:
- Click Install and wait for the process to complete.
-
Download Installer:
- Go to the Anaconda Distribution page.
- Click on Download for macOS.
-
Run the Installer:
- Open the downloaded
.pkg
file. - Follow the installation prompts.
- Open the downloaded
-
Add Anaconda to PATH:
- During installation, you may need to run
conda init
in your terminal.
- During installation, you may need to run
-
Complete Installation:
- Finish the setup and close the installer.
-
Download Installer:
- Go to the Anaconda Distribution page.
- Download the Linux installer (e.g.,
Anaconda3-2023.07-Linux-x86_64.sh
).
-
Run the Installer:
bash Anaconda3-2023.07-Linux-x86_64.sh
-
Follow the Prompts:
- Review the license agreement.
- Choose the installation location (default is usually fine).
-
Initialize Conda:
- When prompted, type
yes
to initialize Conda.
- When prompted, type
- Windows: Open Anaconda Prompt from the Start Menu.
- macOS/Linux: Open your terminal application.
Create a new environment named flux
with Python 3.11:
conda create -n flux python=3.11 -y
Explanation: This command creates a new environment called flux
with the specified Python version.
Activate the newly created environment:
conda activate flux
Example Output:
(flux) C:\Users\YourName>
With the environment activated, install the required dependencies.
pip install -r requirements.txt
Explanation: Installs all packages listed in requirements.txt
for CPU-only operation.
Ensure you have the NVIDIA CUDA Toolkit installed.
pip install -r requirements_cuda.txt
Explanation: Installs GPU-accelerated packages suitable for NVIDIA GPUs.
Ensure you have the AMD ROCm platform installed.
pip install -r requirements_rocm.txt
Explanation: Installs GPU-accelerated packages suitable for AMD GPUs.
Ensure you have the Intel oneAPI Toolkit installed.
pip install -r requirements_intel.txt
Explanation: Installs GPU-accelerated packages suitable for Intel GPUs.
Solution:
- Ensure Anaconda is added to your PATH.
- Alternatively, use the Anaconda Prompt (Windows) or run
source ~/anaconda3/bin/activate
(Linux/macOS).
Solution:
-
Update Conda and Pip:
conda update -n base -c defaults conda pip install --upgrade pip
-
Try creating a new environment.
-
Check for version conflicts in the
requirements
files.
Solution:
-
Ensure the environment was created successfully.
-
Check the list of environments:
conda env list
-
If the environment doesn't exist, recreate it.
conda env list
Example Output:
# conda environments:
#
base * /home/yourname/anaconda3
flux /home/yourname/anaconda3/envs/flux
conda deactivate
Explanation: Returns you to the base environment.
conda remove -n flux --all
Warning: This deletes the flux
environment completely.
Keep Conda up to date to avoid issues:
conda update -n base -c defaults conda
If a environment.yml
file is provided:
conda env create -f environment.yml
Explanation: Creates an environment with all specified dependencies.
- Conda Documentation: Managing Conda Environments
- Anaconda Support: Anaconda Knowledge Base
- Contact: For project-specific issues, refer to the Contact section in the README.