简体   繁体   中英

Python not recognised in windows prompt cmd

Anconda prompt:

where conda
C:\Users\shail\AppData\Local\Continuum\anaconda3\Library\bin\conda.bat
C:\Users\shail\AppData\Local\Continuum\anaconda3\Scripts\conda.exe
C:\Users\shail\AppData\Local\Continuum\anaconda3\condabin\conda.bat

where python
C:\Users\shail\AppData\Local\Continuum\anaconda3\python.exe
C:\Users\shail\AppData\Local\Microsoft\WindowsApps\python.exe

So i went to environment variables and added path of anaconda and python. Path added:

C:\Users\shail\AppData\Local\Continuum\anaconda3
C:\Users\shail\AppData\Local\Microsoft\WindowsApps
C:\Users\shail\AppData\Local\Continuum\anaconda3\Library\bin
C:\Users\shail\AppData\Local\Continuum\anaconda3\Scripts
C:\Users\shail\AppData\Local\Continuum\anaconda3\condabin

But when I type on windows cmd:

C:\Users\shail>conda --version
conda 4.8.3

 C:\Users\shail>python --version

  C:\Users\shail>

So there is no response from windows cmd on version of python , so I guess it is not recognising python . I mainly need to use pip command, for that I need python first. I dont have python separately installed on system. It is inside my anaconda. On some sites it is written I should not download python separately and add its path because that will confuse the computer since there will be 2 pythons; one from Anaconda and one downloaded separately. So sticking to the anaconda version of python.

How to get my anaconda version of python recognised?

pip worked for me after restarting my computer. Though python is still not returning any output but pip is working fine.

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