Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

struggle to upgrade pip on visual studio code

787 views
Skip to first unread message

Tola Oj

unread,
Apr 22, 2022, 6:12:04 AM4/22/22
to
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?

Richard Damon

unread,
Apr 22, 2022, 6:51:08 AM4/22/22
to
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

0 new messages