Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 run script from anaconda command prompt
#1
hi there,

up till now I have been developing on a Raspberry pi and my own Linux box or mac at home, but now I am having to use windows, which I have never used except for the internet. I have emacs running nicely now, but I can't work out how to run a script though? In linux from the terminal it's as simple as ./script.py but I don't know how to do this in windows, all I have managed to do is pull the script up, I can't work out how to actually make it run. What do I have to type in please, assuming that I am in the correct directory.

Apologies, typically just found it, after searching for an hour. You simply have to type 'python' in first. doh

Admins. please feel free to delete this thread.
Quote
#2
Welcome to the world of Microsoft!
Consistency is not one of it's attributes
Quote
#3
A intro.
Anaconda codes with own promt Anaconda promt it's in start menu.
You can also use cmd(or cmder as i use) an navigate to Anaconda3 folder.
G:\Anaconda3
λ python
Python 3.5.2 |Anaconda 4.2.0 (32-bit)| (default, Jul  5 2016, 11:45:57) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()

G:\Anaconda3
λ python foo.py #Running a script

#To Scripts folder
G:\Anaconda3
λ cd Scripts

G:\Anaconda3\Scripts
λ spyder #Start Spyder editor
Anaconda comes with Navigator in start menu.
Spyder is nice editor that's come with Anaconda.
And Jupyter Notebook is cool Cool

If Anaconda is your main Python version.
You should mark this:
Then Path(python commad will work from anywhere in cmd) will be set and editors like Pycharm Free Community will find this version.
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Can read files in command prompt but not IDE Exsul 2 177 Sep-13-2019, 01:40 AM
Last Post: jsira2003
  Python's id() function output in prompt and script mode stormshadow 4 695 Dec-10-2018, 10:08 AM
Last Post: stormshadow
  command prompt saisankalpj 8 1,212 Nov-28-2018, 04:13 AM
Last Post: saisankalpj
  Command Prompt Issue benzenegirl 2 600 Oct-25-2018, 03:09 PM
Last Post: The_Raven
  Script won't continue after command line skip671 7 730 Oct-15-2018, 07:37 PM
Last Post: snippsat
  Pyinstaller to execute a script in command prompt Ciroxxx 0 575 Sep-18-2018, 10:17 AM
Last Post: Ciroxxx
  Subprocess command prompt (Windows) arnaur 6 2,975 Sep-06-2018, 07:22 AM
Last Post: arnaur
  Command prompt execution saisankalpj 2 681 Aug-21-2018, 06:00 PM
Last Post: saisankalpj
  Command prompt execution saisankalpj 7 1,296 Jul-30-2018, 04:09 PM
Last Post: snippsat
  Non-resizable command prompt SlimeBOOS 1 724 Jul-07-2018, 02:21 PM
Last Post: gontajones

Forum Jump:


Users browsing this thread: 1 Guest(s)