简体   繁体   中英

Cant find version or use pip using python27 command line

I have been looking for the past hour regarding installing modules using. It says that python27 comes with pip, However when I type python -m pip install --upgrade pip wheel setuptools into the command line I just get the error NameError: Name 'python' is not defined. I cant even enter python --version .

The module I am trying to install is kivy. On their website it just say download python and type in that string into the command line and it should work. I cant find anywhere if i need to do something beforehand.

I think you have to set PATH in environment variable for python command to work.If you're on windows follow this:

My Computer > Properties > Advanced System Settings > Environment Variables > Then under system variables create a new Variable name PATH.Under value type your python installation directory which includes py.exe etc(scripts folder).Then it'll work. OR open cmd prompt in python folder(shift+context menu click) and then enter command.

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