You know what has worked for me really well on windows.
(您知道在Windows上对我非常有效的方法。)
My Computer > Properties > Advanced System Settings > Environment Variables >
Just add the path as C:\Python27 (or wherever you installed python)
(只需将路径添加为C:\ Python27(或安装python的任何位置))
OR
(要么)
Then under system variables I create a new Variable called PythonPath
.
(然后在系统变量下创建一个名为PythonPath
的新变量。)
In this variable I have C:\Python27\Lib;C:\Python27\DLLs;C:\Python27\Lib\lib-tk;C:\other-folders-on-the-path
(在这个变量中,我有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;
(C:\ Python27;)
along with it.
(随之而来。)
Else it will never work . (否则它将永远无法正常工作 。)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…