diff --git a/appveyor.yml b/appveyor.yml
index 60fb3fcf8f4a4c93edef30b849bb51abcf67e6fb..b6bc8d6910e143b6e31d4336c5419c582295e600 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -21,8 +21,8 @@ install:
   - cmd: call %PYTHON%
   - cmd: conda config --set always_yes yes --set changeps1 no
   - cmd: conda update -q conda
-  - cmd: conda create -q -n test python=%PYTHON_VERSION%
-  - cmd: source activate test
+  - cmd: conda create -q -n test_env python=%PYTHON_VERSION%
+  - cmd: activate test_env
   - cmd: conda config --add channels conda-forge
   - cmd: conda install -c conda-forge pvl protobuf gdal numpy pandas sqlalchemy pyyaml networkx affine h5py scipy
   - cmd: conda install conda-build anaconda-client pytest-cov
@@ -37,6 +37,6 @@ test_script:
   - cmd: pytest plio/
 
 on_success:
-  - cmd: source deactivate
+  - cmd: deactivate
   - cmd: conda config --set anaconda_upload yes
   - cmd: conda build --token %CONDA_UPLOAD_TOKEN% .