Answer the question
In order to leave comments, you need to log in
How to correctly execute a command along with an element from an array in Powershell?
There is an array in which Python modules are stored, it is required to execute the command pip install
+ module from the array for each element.
It gives the following error:
& : The name "pip install urllib" is not recognized as the name of a cmdlet, function, script file, or executable. Checkexperience.
the spelling of the name and the presence and correctness of the path, then repeat
Answer the question
In order to leave comments, you need to log in
try moving the quote:
& "pip install $($modules[$i])"
like this:
& "pip" install $($modules[$i])
ps without quotes, this line also works fine. I really only on cats, ugh, I tried ping -n 1....
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question