1000830_fr

AIDE : les robots et camptocamp.org

1 Like

@Borut et voila! Dis moi si tu coinces quelque part.

Normalement, ça coince pas.

OK, je sors.

@CharlesB

J’ai installé Python et Notepad++.

J’ai ouvert Notepad++, puis enregistré le fichier (File name : test ; Save as type : Python). L’icone Python apparait sur mon Bureau (en la cliquant, la fenetre noire apparait pour une fraction de seconde puis disparait).

J’ouvre le fichier Notepad++. Le titre du fichier est C:\Users\Borut\Desktop\test.py - Notepad++

Ou dois je faire le clic droit ?

Il faut que tu clic droit sur le fichier sur ton bureau :

Chez moi, l’icone est ce PC parce que j’utilise éditeur plus puissant. Mais il me propose notepad++ parce qu’il sait que je peut l’ouvrir avec ce programme. Dans ton cas, il te faudra aller sur le menu en bas à droite « Choose default program ».

Clic droit > Open with > et une petite fenêtre s’ouvre qui dit : How do you want to open this file - avec la proposition : Keep using Python. Sous More Apps, il n’y a pas Notepad++.

(parmi les options après le clic droit il y a bien : Edit wih Notepad++, mais c’est alors le fichier test.py qui s’ouvre)

C’est le résultat qu’on doit avoir par défaut

En bas à droite de la fenètre, tu devrais avoir « browse » ou « rechercher ». De la, il faut aller chercher notepad++.exe à l’endroit ou il est installé. C’est le plus souvent dans « program files ».

Je pense avoir trouvé. Cela a simplement transformé l’icone bureau en une icone Notepad++ qui s’ouvre sur le fichier C:\Users\Borut\Desktop\test.py - Notepad++.

Ensuite j’ai ouvert le cmd et j’ai fait quelques essais. J’obtiens ceci :

Microsoft Windows [Version 10.0.16299.431]
© 2017 Microsoft Corporation. All rights reserved.

C:\Users\Borut>pip install campbot -U
‹ pip › is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Borut>pip install campbot
‹ pip › is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Borut>cd\

C:>pip install campbot -U
‹ pip › is not recognized as an internal or external command,
operable program or batch file.

C:>pip install campbot
‹ pip › is not recognized as an internal or external command,
operable program or batch file.

C:>

Impec pour notepad++

Il y a un souci avec ton install python, pip devrait etre reconnu quelque soit l’endroit.

Tu peux essayer de réinstaller python ?

1 Like

Je vais mettre à jour l’aide au fur et à mesure :slight_smile:

Camptocamp.org

Ah, et on sais jamais, tu dois fermer et ré-ouvrir une nouvelle invite de commande après ton install python pour faire pip install...

J’ai réinstallé. Une question avant d’aller chercher de l’aide sur le forum Python. Dois je utiliser la page noire 1 ou 2 des exemples ci dessous ? :


EXEMPLE 1

Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 16:07:46) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> "pip install campbot -U"
'pip install campbot -U'
>>>

EXEMPLE 2

Microsoft Windows [Version 10.0.16299.431]
(c) 2017 Microsoft Corporation. All rights reserved.

C:\Users\Borut>pip install campbot
'pip' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Borut>

Exemple 2

Merci.
Un dernière question afin que je comprenne la situation : tel que j’ai formulé l’exemple 2, ça devrait marcher, n’est ce pas ?

oui, sans hésitation. Si ca ne marche pas, fait ça :

echo %PATH%

Et copie colle ici le résultat.

Microsoft Windows [Version 10.0.16299.431]
© 2017 Microsoft Corporation. All rights reserved.

C:\Users\Borut>echo %PATH%
C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Users\Borut\AppData\Local\Microsoft\WindowsApps;

C:\Users\Borut>

Tu n’as eu aucun souci à l’install python?

Autre commande à faire, et à coier coller le resultat :

SET

Pas que je sache. Quel type de souci ?


@CharlesB

Microsoft Windows [Version 10.0.16299.431]
© 2017 Microsoft Corporation. All rights reserved.

C:\Users\Borut>SET
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\Borut\AppData\Roaming
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=HOME-BORUT
ComSpec=C:\WINDOWS\system32\cmd.exe
FPS_BROWSER_APP_PROFILE_STRING=Internet Explorer
FPS_BROWSER_USER_PROFILE_STRING=Default
HOMEDRIVE=C:
HOMEPATH=\Users\Borut
LOCALAPPDATA=C:\Users\Borut\AppData\Local
LOGONSERVER=\HOME-BORUT
NUMBER_OF_PROCESSORS=4
OneDrive=C:\Users\Borut\OneDrive
OS=Windows_NT
Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Users\Borut\AppData\Local\Microsoft\WindowsApps;
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 55 Stepping 3, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=3703
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
PUBLIC=C:\Users\Public
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\Users\Borut\AppData\Local\Temp
TMP=C:\Users\Borut\AppData\Local\Temp
USERDOMAIN=home-borut
USERDOMAIN_ROAMINGPROFILE=home-borut
USERNAME=Borut
USERPROFILE=C:\Users\Borut
windir=C:\WINDOWS

C:\Users\Borut>

Bizarre. Tu as bien fermé, et ré-ouvert un nouveau cmd après ton installation de python?

Oui.

Je fais maintenant un restart de l’ordi.