Assuming you have python3 installed, you can us virtual environment mechanisms built into python3 to prevent errors just like this.
I saw in the comments you are using Windows, so the following steps to ensure that you are using the intended version of Python every time.
first navigate to your projects directory and run the command:
c:\Temp>c:\Python35\python -m venv myenv. This will create a directory myenv with scripts to create your virtual enviroment.
Next activate your virtual enviroment with the command:
C:\> .\myenv\Scripts\activate.bat. This will change your environment to what is set in the virtual environment.
Now run the command python to see that python 3.5 is being run.
to exit the virtual environment just run deactivate.bat
python3instead ofpython. The-Voption would print the version directly likepython -Vshould give2.7.11