help(string) commands not working on pyton 3.5
eryksun
eryksun at gmail.com
Fri Oct 16 19:02:17 EDT 2015
On 10/16/15, Prasad Joshi <prajoshi at microsoft.com> wrote:
>
> I am using windows 10.
>
>>>> import math
>>>>
>>>>
>>>> help (math)
> 'more' is not recognized as an internal or external command,
> operable program or batch file.
What do you get for the following?
import os
windir = os.environ['SystemRoot']
more_path = os.path.join(windir, 'System32', 'more.com')
print(os.path.exists(more_path))
If more.com doesn't exist, your Windows installation needs to be
repaired. If it does exist, then probably PATHEXT is missing .COM.
Ensure it's listed in the output of the following:
import os
print(os.environ['PATHEXT'])
More information about the Python-list
mailing list