diff --git a/appveyor.yml b/appveyor.yml
index 0ba1532ab4bcfd81b55265da772124ee6f41a5dc..9424212c07f4f9fcc6f7eb88325551bac9126088 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -22,7 +22,9 @@ install:
   - cmd: conda config --add channels conda-forge
   - cmd: conda install -c conda-forge pvl protobuf gdal numpy pandas sqlalchemy pyyaml networkx affine h5py
   - cmd: conda install conda-build anaconda-client pytest-cov
-  - cmd: pip install --upgrade pip setuptools
+  # https://pythonhosted.org/CodeChat/appveyor.yml.html
+  - cmd: python -m pip install -U pip
+  - cmd: python -m easy_install -U setuptools
 
 build_script:
   - cmd: python setup.py install