Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1684 connectés 

  FORUM HardWare.fr
  Programmation
  Python

  Problèmes pour commencer en python

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Problèmes pour commencer en python

n°2307184
dolcevita8​3
Posté le 31-10-2017 à 22:41:32  profilanswer
 

Bonjour à tous,
 
J'ai commence le Python il y a quelques heures... :love:  et pour l'instant mes principaux problèmes viennent de la configuration de l'espace de travail !
 
J'ai installé Python 3.6.3 sur un PC sous Windows 10. Ensuite j'ai installé Sublime Text 3, Package Control puis Anaconda. Mais j'ai deux trucs bizarres :
 
- chaque fois que je lance Sublime text 3 il me dit : "<Anaconda.anaconda_lib.workers.local_process.LocalProcess object at XXX> process can not start a new anaconda JsonServer in the operating system beacause : Anaconda can not spawn a new process with your current configured python interpreter (python) Make sure your interpreter is a valid binary and is in your PATH or use an absolute path to it, for exemple: C:\\Python27\\python.exe"
 
- d'autre part quand je fais "Ctrl + B" pour exécuter le programme, il ne se passe rien et j'ai ce message :
[Finished in 0.0s with exit code 1]
[shell_cmd: python -u "D:\Python\Projets Python\P1.py"]
[dir: D:\Python\Projets Python]
[path: C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Users\XXX\AppData\Local\Microsoft\WindowsApps;]
 
J'ai fait des recherches et je ne suis pas le seul à avoir ce souci a priori...Sauf que je ne comprends rien aux solutions données !
 
Pour info, mon python est installé dans : C:\Program Files (x86)\Python36-32
et quand je lance un fichier XXX.py à partir de CMD.exe ça se lance et ça tourne sans problème.
 
J'imagine que Sublim text n'a pas le bon chemin... Mais je n'arrive pas à le changer !!

mood
Publicité
Posté le 31-10-2017 à 22:41:32  profilanswer
 

n°2307186
dolcevita8​3
Posté le 31-10-2017 à 23:24:19  profilanswer
 

J'ajoute que si j'ouvre mon projet sous IDLE et que je fais run ("F5" ), ça marche tout seul !

n°2307267
dolcevita8​3
Posté le 04-11-2017 à 10:21:53  profilanswer
 

Si jamais quelqu'un a le même problème, c'était parce que Python n'était pas dans la variable d'environnement PATH. Il faut rajouter "C:\Program Files (x86)\Python36-32" dans la variable PATH.
Cela se fait ainsi : https://fr.wikipedia.org/wiki/Variab...8re_permanente


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  Python

  Problèmes pour commencer en python

 

Sujets relatifs
PYTHON=>EXE Problème ! L'alignement avec la fonction le format en python
question sur python triangle * couronneEvenement touche python no gui
[Python] Barre d'outilCréation site - Par où commencer ? Qui contacter ?
[Python] Sous échantillon aléatoire pas vraiment aléatoire! Pourquoi ?Par quel langage remplacer du python?
executer un script en python en variable?question de programmation python GPIO et raspbian
Plus de sujets relatifs à : Problèmes pour commencer en python


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR