简体   繁体   中英

pip is not recognized what trying to install pyinstaller

Whenever I try to install pyinstaller I am not able to and I get the error "'pip' is not recognized as an internal or external command, operable program or batch file." could anyone help me as it also affects me when I try to install directories.

尝试使用完整语法命令,键入:

python -m pip install pyinstaller

If you haven't installed pip, you can install it by using get-pip.py . Download it as a .py file, and run it using python get-pip.py .

To add it to your path variable so that you can run it from anywhere (assuming Windows 10), go to System/Control Panel, then Advanced System Settings, then Environment Variables. Find the path variable, and add at the end C:\\Python27\\Scripts\\pip.exe (replacing XX with the appropriate Python version, and making sure that there's a semicolon between the end of the last entry and the new one). Save your changes, and you should be able to use pip from any directory in the system.

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