Electrum wallet can't run after pip installation

I installed the Bitcoin wallet electrum using official tutorial command

“sudo pip install https://download.electrum.org/2.6.2/Electrum-2.6.2.tar.gz

The installation completed successfully without any error reporting.

Then when I launch it,

electrum
Traceback (most recent call last):
  File "/usr/bin/electrum", line 72, in <module>
    check_imports()
  File "/usr/bin/electrum", line 46, in check_imports
    import aes
  File "/usr/lib/python3.4/site-packages/aes.py", line 643
    raise ValueError, emsg % keysize
                    ^
SyntaxError: invalid syntax

Any idea?

Hi! I just had the same issue and I just solved it.
You have to do

sudo pip uninstall electrum

and then

sudo pip2 install https://download.electrum.org/2.6.3/Electrum-2.6.3.tar.gz

as described here

https://github.com/spesmilo/electrum/issues/1478