Trouble Importing Module In Python
Versions OS: OSX Sierra Python: 3.5 What am I trying to achieve? I'm trying to import krakenex and run it with cmd + b in Sublime Text 3 on OSX. What do I expect to happe
Solution 1:
If I create a new file that just says
print 'hello world'
and then press cmd + b, it does printhello world
.
Here is your problem. See, your program is written in Python 2. Had you run it in Python 3, it would say SyntaxError: Missing parentheses in call to 'print'
.
You've installed that module into your python3 and are running python2 from ST3.
Post a Comment for "Trouble Importing Module In Python"