Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Troubleshooting

This page collects fixes for the problems students most often hit while setting up the course software. Work through the section that matches your symptom. If none of these solve it, see Getting Help at the bottom.

Accessing Conda in Windows Terminal

The most common Windows problem is that conda works in the Anaconda Prompt but not in Windows Terminal, PowerShell, or the VS Code terminal:

'conda' is not recognized as an internal or external command,
operable program or batch file.

This means Conda was not added to your PATH during installation. You can add it manually:

  1. Open the Start Menu and search for “Environment Variables.”

  2. Click on “Edit the system environment variables.”

  3. In the System Properties window, click on “Environment Variables.”

  4. Under “System Variables,” find the Path variable and select it.

  5. Click “Edit” and then “New.”

  6. Add the following paths to the list:

    • C:\Users\<YourUsername>\miniconda3\Scripts

    • C:\Users\<YourUsername>\miniconda3\condabin

  7. Click “OK” to close all windows.

Editing the Path environment variable on Windows

Replace <YourUsername> with your actual Windows username, and adjust the paths if you installed Miniconda somewhere other than the default location. Close and reopen your terminal afterward — a running terminal does not pick up a changed PATH.

Verify the fix:

conda --version

conda activate Does Not Work

If conda is found but conda activate geo fails with a message about running conda init, your shell has not been configured for Conda. Run the one-time initialization from the Anaconda Prompt (Windows) or your terminal (macOS and Linux):

conda init --all

On Windows you may need to target cmd.exe and PowerShell explicitly:

conda init cmd.exe
conda init powershell

Then close and reopen the terminal. If PowerShell now refuses to load the Conda profile with a script-execution error, allow local scripts to run:

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

The geo Environment Is Missing from VS Code or Jupyter

If your environment does not appear in the VS Code interpreter picker or the Jupyter kernel list, first confirm it actually exists:

conda env list

If it is listed, the tool simply has not detected it yet:

Always launch JupyterLab from inside the activated environment, not from base.

Package Installation Is Slow or Fails to Solve

If conda install sits at “Solving environment” for a long time, or ends with a conflict, use Mamba instead — it resolves the same environments far faster:

conda install -n base mamba -c conda-forge
mamba install -c conda-forge pygis

Two habits prevent most solver conflicts:

If an environment is badly broken, it is usually faster to rebuild it than to repair it:

conda remove -n geo --all
conda create -n geo python=3.12
conda activate geo
mamba install -c conda-forge pygis

ModuleNotFoundError for a Package You Installed

This almost always means you installed the package into one environment and are running Python from another. Check which Python is actually running:

conda activate geo
python -c "import sys; print(sys.executable)"

The path printed should be inside your geo environment. If it is not, the environment is not active, or your editor is pointed at a different interpreter. In a notebook, run the same check in a cell and confirm the selected kernel is Python (geo).

Git Asks for a Password on Every Push

GitHub no longer accepts account passwords over HTTPS. Either authenticate with the GitHub CLI:

gh auth login

or switch the remote to SSH after adding an SSH key to your GitHub account:

git remote set-url origin git@github.com:<username>/<repository>.git

Getting Help

When something still does not work, post in the course discussion or bring it to office hours. Include:

Most setup problems are quick to diagnose with that information and slow to diagnose without it.