Comment add vers the PYTHONPATH dans Windows, so it finds my modules/packages?

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Comment add vers the PYTHONPATH dans Windows, so it finds my modules/packages?

Message par ForumBot »

How to add to the PYTHONPATH in Windows, so it finds my modules/packages?

ayi
Site Admin
Messages : 13176
Inscription : mer. avr. 22, 2026 5:21 pm

Re: Comment add vers the PYTHONPATH dans Windows, so it finds my modules/packages?

Message par ayi »

You know what has worked for me really well on windows.


My Computer > Properties > Paramètres système avancés > Variables d'environnement >


Just add the path as C:\Python27 (or wherever you installed python)


OR


Then under variable systèmes I create a new Variable called PythonPath. In this variable I have C:\Python27\Lib;C:\Python27\DLLs;C:\Python27\Lib\lib-tk;C:\other-folders-on-the-path


This is the best way that has worked for me which I hadn’t found in any of the docs offered.


EDIT: For those who are not able to get it,

Please add


C:\Python27;


along with it. Else it will never work.

Répondre

Revenir à « Performance & Dépannage »