Jump to content

Which command line to run python commands?

    I've tried both the Python Command line and Command prompt. Neither of them have worked. I'm trying to follow the Django Tutorial but cant issue any commands which I'm going to assume is going to be an issue as there is a couple on the first tutorial. https://docs.djangoproject.com/en/1.9/intro/tutorial01/

 

Thanks.

Looking for a Programming Project take a look here!

http://linustechtips.com/main/topic/407332-looking-for-a-project-idea-start-here/

Link to comment
https://linustechtips.com/topic/518866-which-command-line-to-run-python-commands/
Share on other sites

Link to post
Share on other sites

-snip-

 

I use Windows Powershell to run Python. I'm not sure if it does the same thing as what you're looking for.

 

The below code will set up python in Powershell. Replace "Python27" with whatever python version you have / wherever you installed Python to.

[Environment]::SetEnvironmentVariable(”Path”, ”$env:Path;C:\Python27”, ”User”) 

You'll need to know basic terminal commands to navigate to where your code is though.

 

This is how "Learn Python the Hard Way" by Zed Shaw tells you to run python. I started learning python thanks to that book.

Link to post
Share on other sites

Add the python interpreter(the root folder of python.exe) to the windows path environment variables.

Eg : http://www.computerhope.com/issues/ch000549.htm

i5 4670k @ 4.2GHz (Coolermaster Hyper 212 Evo); ASrock Z87 EXTREME4; 8GB Kingston HyperX Beast DDR3 RAM @ 2133MHz; Asus DirectCU GTX 560; Super Flower Golden King 550 Platinum PSU;1TB Seagate Barracuda;Corsair 200r case. 

Link to post
Share on other sites

Add the python interpreter(the root folder of python.exe) to the windows path environment variables.

Eg : http://www.computerhope.com/issues/ch000549.htm

this solved my problems when I installed python

Pro Tip: don't use flash when taking pictures of your build; use a longer exposure instead. Prop up your camera with something (preferably a tripod) if necessary.

if you use retarded/autistic/etc to mean stupid please gtfo

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×