0

Why doesn't Sololearn indicate Cython (a module) needs to be installed

I'm forced to use Python 3.5.2 Windows (Seeing as Python 2.7.12 isn't used in this, though "compatible" with Kivy & pyOpenGL) and that Cython is a Module that has to be installed via Command Prompt. 1. (Start Menu) Search cmd > Open "cmd.exe" > Type in cd c:\python32 (Mines is c:\py cause that is where I installed it) > Press Enter 2.(CMD) Type in python -m pip install cython 3. (IDE) Python's IDE > Import cython > then start coding cause I keep getting errors even though I follow everything

22nd Oct 2016, 1:36 PM
Christopher Campbell
Christopher Campbell - avatar
6 odpowiedzi
+ 1
You usually don't need that. What errors were you getting?
22nd Oct 2016, 1:49 PM
Zen
Zen - avatar
+ 1
This is an unrelated error. You just have to properly indent your code. Python uses indentation to distinguish between blocks. num = 12 if num > 5: print("Bigger than 5")
22nd Oct 2016, 1:58 PM
Zen
Zen - avatar
+ 1
Why do you need Cython in the first place? If you're new to Python, Cython should be out of your league.
22nd Oct 2016, 2:03 PM
Edgar Garrido
Edgar Garrido - avatar
+ 1
I hear Cython makes Python faster...I'm using Blender to Create Models. then Videos and then on to games...so I would also want to pick up Cython as I go
20th Feb 2018, 10:54 AM
Christopher Campbell
Christopher Campbell - avatar
0
After typing [What is inside these are from IDE] num = 12 if num > 5: [...]print ("Bigger than 5") [File "<stdin>", line 2] [print ("Bigger than 5"] [ ^] [IndentationError: expected an indented block]
22nd Oct 2016, 1:55 PM
Christopher Campbell
Christopher Campbell - avatar
0
Thanks, I guess that was something I needed to know
22nd Oct 2016, 2:03 PM
Christopher Campbell
Christopher Campbell - avatar