Installing from Source (Windows, Linux)
These instructions are for installing pymdwizard from source on Windows, Linux.
Instructions for installing pymdwizard from source are intended for someone with a basic familiarity with Python and conda package installations.
Install Miniforge.
Miniforge is a minimal conda installer that uses conda-forge as the default channel. Download the appropriate installer for your operating system (Windows, Linux, or Mac) and follow the installation instructions.
Open the Miniforge command prompt:
Windows: Launch “Miniforge Prompt” from the Start menu
Linux/Mac: Open a terminal (conda will be available in your shell if you selected the option during installation)
Navigate to the directory where you want to install the Metadata Wizard:
The example directory below could be different depending on operating system or organization
cd c:/projects
Clone the fort-pymdwizard project:
git clone https://github.com/DOI-USGS/fort-pymdwizard.git
Navigate to the project folder:
cd fort-pymdwizard
Create the pymdwizard conda environment from the environment.yml file:
This will create an environment with Python 3.13 and all required dependencies.
conda env create -f environment.yml
Activate the environment:
(Works on all platforms - Windows, Linux, and Mac)
conda activate pymdwizard
Add the project folder to the Python path:
First, find your environment’s site-packages directory:
python -c "import site; print(site.getsitepackages()[1])"Then create a
.pthfile in that directory containing the full path to the project folder.Windows (from the Miniforge Prompt, in the fort-pymdwizard directory):
echo %CD% > %CONDA_PREFIX%\Lib\site-packages\pymdwizard.pthLinux/Mac:
echo $PWD > $CONDA_PREFIX/lib/python3.13/site-packages/pymdwizard.pthYou can verify it worked by running:
python -c "import pymdwizard; print(pymdwizard.__version__)"
Launch Metadata Wizard:
python pymdwizard/gui/MainWindow.py