M
M
maryaturova2021-09-13 22:20:03
cmd/bat
maryaturova, 2021-09-13 22:20:03

Silent install (via bat) + pip "is not an internal or external program"?

There was a need to install python + modules for clients, so as not to explain where and where to check the boxes, I decided to use a silent installation via a bat file.

python-3.9.7.exe /quiet InstallAllUsers=0 PrependPath=1
pip install --upgrade pip
pip install -U win-unicode-console
pip install -r requirements.txt

Python is installed without problems, but when it comes to pip I get "pip" is not .........
But when the console closes and if I run bat again (without installing python), all modules are installed without problems.
I tried to set timeout and divide it into 2 bat files - to no avail.
Tell me how to run everything with one file?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander, 2021-09-13
@avorsa

without claiming a 100th hit with the answer, but still you will find something useful in the off. documentation - https://pip.pypa.io/en/stable/installation/

V
Vindicar, 2021-09-14
@Vindicar

There is a suspicion that changing PATH by the installer does not affect the current shell session in which your .bat file is running - only freshly created after installation.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question