diff --git a/.travis.yml b/.travis.yml
index ba9487ba6daf7d9898ed95a9130c95234cd76c14..5a6ca8cba5e1ab7f7078fb838eb468c5a960bc6b 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -29,7 +29,7 @@ before_install:
   # Useful for debugging any issues with conda
   - conda info -a
   # Create the env
-  - conda create -q -n test python=$PYTHON_VERSION
+  - conda create -q -n test python="$PYTHON_VERSION"
   - source activate test
   
 install:
@@ -49,7 +49,7 @@ after_success:
   - coveralls
   - conda install conda-build anaconda-client
   - conda config --set anaconda_upload yes
-  - conda build --token $CONDA_UPLOAD_TOKEN --python $PYTHON_VERSION recipe
+  - conda build --token $CONDA_UPLOAD_TOKEN --python "$PYTHON_VERSION" recipe
 
 notifications:
   webhooks: