简体   繁体   中英

Adding python folder to system variables isnt working

I have python 3.5 on my computer installed in

C:\Users\admin\AppData\Local\Programs\Python\Python35

I add this path to the variable PATH then i try python in command line then I am getting this error

"python" is not recognized as an internal or external command, operable program or bath file

I even tried creating a new variable PYTHONPATH as suggested by one of the answers on stackoverflow but that didn't work for me

Edit 1: Yes , I can see the path when I enter the command path in the cmd . And yes the path is correct

path shown as in cmd.exe :

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\admin>path
PATH=C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\PC Connectivity
Solution\;C:\Program Files (x86)\Common Files\Intel\Shared Files\cpp\bin\Intel64
;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\Win
dowsPowerShell\v1.0\;C:\Program Files (x86)\Common Files\lenovo\easyplussdk\bin
; C:\Users\admin\AppData\Local\Programs\Python\Python35 ; C:\Users\admin\AppData
\Local\Programs\Python\Python35\Scripts;C:\Users\admin\AppData\Local\atom\bin ;
C:\Users\admin\AppData\Local\Programs\Python\Python35 ; C:\Users\admin\AppData\L
ocal\Programs\Python\Python35\Scripts

C:\Users\admin>

Please check the path you are entering, is python exactly present on the same path you provided. For me I just tried to latest version of python on my windows 10 laptop, new installed path is C:\\Users\\samra\\AppData\\Local\\Programs\\Python\\Python35-32 , It was not on ---\\AppData\\Local\\Programs\\Python\\Python35
Check it and update your Path Variable, reopen the command prompt it should work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM