2

Is there any way to download and install and add to path Python automatically with just one command or just series of commands with bat file?

I have tried with downloading and installing with following commands:

To download installer:

curl https://www.python.org/ftp/python/3.7.9/python-3.7.9-amd64.exe -o python_install.exe

To install:

python_install.exe /passive InstallAllUsers=1 PrependPath=1 Include_test=0  Include_pip=1

But this does not add Python to path even after using PrependPath=1.

1 Answer 1

-3

Why don't you try downloading Python from the official website by yourself?

  1. Download the desired version of python from the Official Website https://www.python.org/downloads/

  2. Then open the file, you'll see an image like this,

    Python Installation

  3. Just click the "Add Python 3.8 to PATH" (In my case)

And that will do it,

  • Installed Python

  • Added to PATH

Sign up to request clarification or add additional context in comments.

1 Comment

That's not "with just cmd".

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.