Did you make Canopy User Python your default python? My guess is you didn't. Doing so will invoke Canopy's User python executable from the command line and x=5
should work. Another way to achieve the same is to open a "Canopy Command Prompt" window from the Windows Start menu: that will only make Canopy your default python for that session. To access it, Start > All programs > Enthought Canopy > Canopy Command Prompt
One way or another, when you start Canopy's python
from the terminal you should see:
C:\Users\jrocher\> python
Enthought Canopy Python 2.7.3 | 32-bit | (default, Dec 2 2013, 16:14:17) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>