struggle to upgrade pip on visual studio code
Richard Damon
Richard at Damon-Family.org
Fri Apr 22 06:50:42 EDT 2022
On 4/22/22 6:11 AM, Tola Oj wrote:
> hello, i successfully installed openpyxl but it is saying this about my pip:
>
> WARNING: You are using pip version 22.0.2; however, version 22.0.4 is
> available.You should consider upgrading via the 'C:\Program
> Files\Python310\python.exe -m pip install --upgrade pip' command.
>
> And then when I try to upgrade using 'C:\Program Files\Python310\python.exe
> -m pip install --upgrade pip command it says this:
>
> C:\Program : The term 'C:\Program' is not recognized as the name of a
>
> cmdlet, function, script file, or operable program. Check the spelling of
>
> the name, or if a path was included, verify that the path is correct and
>
> try again.
> At line:1 char:1
> + C:\Program Files\Python310\python.exe -m pip install --upgrade pip+
> ~~~~~~~~~~
> + CategoryInfo : ObjectNotFound: (C:\Program:String) [], Comma
>
> ndNotFoundException
> + FullyQualifiedErrorId : CommandNotFoundException
>
> please what do I do?
When a program name/path includes spaces, you need to put the whole name
in quotes, like
"C:\Program Files\Python310\python.exe" -m pip install --upgrade
Now, if python is on your path (and 3.10 is the first python found), you
should be able to simpify that to
python -m pip install --upgrade
--
Richard Damon
More information about the Python-list
mailing list