Setting Up a CentOS 7 VMware Virtual Machine Work Environment (R4.5.1 + Python 3.11.7)

Setting up a CentOS 7 VMware virtual machine work environment is the foundation for the system to run properly and for users to work efficiently.

Step 1: Install Anaconda. Download Anaconda and place it in the shared folder.

Official download link: https://www.anaconda.com/

Setting Up a CentOS 7 VMware Virtual Machine Work Environment (R4.5.1 + Python 3.11.7)

Step 2: Enter the Linux system of the virtual machine and navigate to the shared folder where Anaconda is located.

# Execute installation bash Anaconda3-2025.06-0-Linux-x86_64.sh -u # Activate Anaconda source ~/.bashrc  # Check if conda is installed conda -V 

Step 3: Set up the work environment.

Configuration of R language work environment

# Create R environment conda create -n r_env r-base=4.5.1  # 4.5.1 is the version number of R, can be replaced with the desired version # Activate environment conda activate r_env   # Check version to see if configured successfully R --version  # Exit environment: conda deactivate ## View existing environments conda info -env conda env list # List all Conda environments # Delete environment (if needed) # conda remove -n r_env --all 

Configuration of Python work environment

# Create Python environment conda create -n py_env python=3.13.7 # Activate environment conda activate py_env # Check version to see if configured successfully python --version # Exit environment: conda deactivate ## View existing environments conda info -env conda env list # List all Conda environments # Delete environment (if needed) # conda remove -n py_env --all

Step 4: If there are configuration issues, configure the USTC mirror source and try setting up the work environment again.

# Add USTC mirror source conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/ conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/ conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/ # Ensure channel URL is displayed conda config --set show_channel_urls yes # Clear cache conda clean -i # Verify configuration conda config --show channels # Accept main channel terms conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/main # Create environment (see step 3)........ 

That’s all for this sharing. The next session will feature more exciting single-cell analysis content, so stay tuned.

Follow our public account for more exciting content.

Leave a Comment