简体   繁体   中英

Can't install pillow module

I have been working on a small rpg game by using python. I want a picture to pop up during the last boss and I have been told that is possible by using pillow . While trying to install it via this code:

pip install pillow

I get an error that states:

'pip' is not recognized as an internal or external command, operable program or batch file.

What am I supposed to do?

The issue is that the pip script by Python is not found by Windows. The reasons may be:

  • Improper installation of Python (leading to the file not being on your device)
  • PATH variable not set properly (leading to the inability of Windows to recognize pip , even if it is present on your device)

Verify if the script is present in your Python installation folder. The default path for pip and other scripts is C:\Users\<username>\AppData\Local\Programs\Python\<version>\Scripts

  • If there is a pip.exe file in that, just add the full path of the Scripts folder to the Windows PATH variable. Check out this link if you need help with setting the PATH variable

  • If the file is absent, I recommend a clean re-install of Python on your PC (just to ensure all files are present)

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