2017-07-18 4 views
0

Lorsque je tente d'exécuter avec coureur Atom une ligne très simple de commande commeerreur Atom-runner [Python]

print("Hello World") 

J'ai cette erreur:

Unable to find command: python 
Are you sure PATH is configured correctly? 

    ENV PATH: C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common\C:\Users\alvar\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Python 3.6;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Users\alvar\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Python 3.6\Python 3.6 (64-bit);C:\Users\alvar\AppData\Local\Microsoft\WindowsApps; 

    Error: spawn python ENOENT 
     at exports._errnoException (util.js:1026:11) 
     at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32) 
     at onErrorNT (internal/child_process.js:359:16) 
     at _combinedTickCallback (internal/process/next_tick.js:74:11) 
     at process._tickCallback (internal/process/next_tick.js:98:9) 

Je Python 3.6, aidez s'il vous plaît. Merci.

+0

Êtes-vous sûr que PATH est configuré correctement? –

Répondre

0

si vous utilisez package atome-python-run vous devez définir chemin exécutable python, dans mon cas

C:\Python3.5\python.exe "{file}" 
0

Assurez-vous que votre emplacement Python est dans votre chemin. Juste Google « chemin changeant » + votre système d'exploitation


La variable PATH est un peu comme vous dire l'ordinateur tous les endroits à regarder si elle a besoin de trouver quelque chose. S'il regarde dans ces endroits et il ne peut rien trouver, il abandonne. L'ajout d'un emplacement à votre chemin est juste en lui donnant un autre endroit pour trouver des choses.