1

I tried to download colorama, but when I write pip install colorama, there is an error:

The system cannot execute the specified program.

Here is the command input and the output:

C:\Users\ADMIN>pip install colorama
The system cannot execute the specified program.
1
  • Is pip installed on your system? Commented Feb 28, 2022 at 15:14

2 Answers 2

1
  1. Verify that python is installed and working: python -V (prints current python version to console)
  2. Ensure that latest pip version is installed: python -m ensurepip --upgrade
  3. Verify pip is working: pip -V (prints current pip version to console)
  4. Install package: pip install colorama
Sign up to request clarification or add additional context in comments.

1 Comment

your statement on the -m flag is incorrect. It has nothing to do with python versions, rather it tells python to execute a module as a script by running it's __main__.py file. (or if it is a single file module, by running that single file as "__main__"). What is typically unnecessary is to call python itself, because pip often includes a script which is directly executable in the shell as long as it's on the search path (and is installed)
0

You probably installed pip very recently (first usage ?)

Windows detected it as suspicious and ask you to "unblock" it first.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.