Team Installation Script
Save this script as install_packages.bat and share with your team for quick setup.
The Script
install_packages.bat
@echo off
echo ========================================
echo NetSuite Report Development Setup
echo ========================================
echo.
echo Checking Python installation...
python --version >nul 2>&1
if %errorlevel% neq 0 (
echo.
echo ERROR: Python is not installed or not in PATH!
echo.
echo Please install Python from https://www.python.org/downloads/
echo IMPORTANT: Check "Add Python to PATH" during installation!
echo.
pause
exit /b 1
)
echo Python found!
python --version
echo.
echo Checking pip installation...
python -m pip --version >nul 2>&1
if %errorlevel% neq 0 (
echo pip not found. Installing pip...
python -m ensurepip --default-pip
if %errorlevel% neq 0 (
echo Trying alternative pip installation...
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
del get-pip.py
)
)
echo.
echo Upgrading pip to latest version...
python -m pip install --upgrade pip
echo.
echo Installing required packages...
pip install pandas xlsxwriter numpy openpyxl jupyter
echo.
echo ========================================
echo Installation Complete!
echo ========================================
echo.
echo Installed packages:
echo - pandas (data processing)
echo - xlsxwriter (Excel creation)
echo - numpy (calculations)
echo - openpyxl (Excel reading)
echo - jupyter (notebook support)
echo.
echo Next steps:
echo 1. Open VS Code
echo 2. Install "Python" extension by Microsoft
echo 3. Install "Jupyter" extension by Microsoft
echo 4. Open .ipynb notebook files
echo.
pause
How to Use
- Copy the script above
- Open Notepad
- Paste the content
- Save as
install_packages.bat(make sure "Save as type" is "All Files") - Right-click the file → "Run as administrator"
What the Script Does
- Checks Python Installation - Verifies Python is installed and in PATH
- Shows Python Version - Confirms which version is installed
- Installs pip - If pip is not found, installs it using
ensurepipor downloads from bootstrap.pypa.io - Upgrades pip - Ensures the package manager is up-to-date
- Installs Packages - Installs all required dependencies:
pandas- Data manipulation libraryxlsxwriter- Excel file creationnumpy- Numerical calculationsopenpyxl- Excel file readingjupyter- Notebook support
- Shows Next Steps - Guides the user to complete VS Code setup
Troubleshooting
Script says "Python is not installed"
- Download Python from https://www.python.org/downloads/
- During installation, check "Add Python to PATH"
- After installation, restart Command Prompt
- Run the script again
Installation takes too long
Some corporate networks block or slow down pip. Try:
pip install pandas xlsxwriter numpy openpyxl jupyter -i https://pypi.org/simple/ --trusted-host pypi.org
Permission errors
Make sure you right-click and select "Run as administrator"