Less than 1 minute
Installation Guide
1. Install Python Environment
We recommend using Anaconda to install Python 3.9.12 or Python 3.9.13.
Option 1: Install Anaconda:
Installation Steps:
- Run the downloaded
Anaconda3-2022.05-Windows-x86_64.exe
. - Follow the installation wizard and complete the setup (default settings are recommended).
- Run the downloaded
Option 2: Use Python Portable Package:
- Download link: Python Portable Package (python.zip)
Installation Steps:
- Simply extract
python.zip
to use.
- Simply extract
2. Download and Configure mcp_excel
Download mcp_excel:
- Obtain the
mcp_excel_xxx.zip
file and extract it to a suitable directory.
- Obtain the
Modify Configuration File:
- Navigate to the
\lib\X64\
folder within the extracted directory. - Rename
pyxll.cfg.txt
topyxll.cfg
.
- Navigate to the
Configure Python Path:
- Open the
pyxll.cfg
file and locate theexecutable
parameter. - Update its value to the path of
python.exe
in your installation directory. For example:executable = C:\ProgramData\Anaconda3\python.exe or executable = C:\ProgramData\python\python.exe
- Open the
3. Load pyxll in Excel
- Open Excel.
- Go to File → Options → Add-ins.
- Under "Manage," select Excel Add-ins from the dropdown and click Go.
- In the new window, click Browse and locate the
pyxll.xll
file in the extractedmcp_excel
directory:- For 32-bit Excel, select the
Win32
version. - For 64-bit Excel, select the
X64
version.
- For 32-bit Excel, select the
- Click OK to complete the loading process.
Notes
- Ensure the installed Anaconda version matches your system architecture (32-bit or 64-bit).
- If loading fails, verify that the
executable
path inpyxll.cfg
is correct.