pip SyntaxError: invalid syntax [SOLVED] | (UPDATE: Follow the latest steps in the description👇)

Sdílet
Vložit
  • čas přidán 22. 02. 2021
  • Dealing with "pip SyntaxError: invalid syntax" then follow these STEPS. IT WORKS!
    ------------------------------------------------------------------------
    STEPS :-
    1. curl bootstrap.pypa.io/pip/2.7/get... GREATER-THAN-SYMBOL get-pip.py
    (---Don't use the url which is in the video, they've updated the url. Instead use this "updated" one 👆 . If complete URL is not visible in the description, then check the top pinned comment down below 👇---)
    2. sudo python get-pip.py
    OR
    2. sudo python3 get-pip.py (this will install pip where python3 is installed)
    3. Restart terminal and check the pip version by command "pip --version".
    Want the latest pip version? use this line 👇
    (python path on your computer) -m pip install --upgrade --user pip
    ------------------------------------------------------------------------
    This will fix the following error :-
    Traceback (most recent call last):
    File "/usr/local/bin/pip", line 9, in module
    load_entry_point('pip==21.0.1', 'console_scripts', 'pip')()
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 565, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 2697, in load_entry_point
    return ep.load()
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 2370, in load
    return self.resolve()
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 2376, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
    File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/cli/main.py", line 60
    sys.stderr.write(f"ERROR: {exc}")
    ^
    SyntaxError: invalid syntax
    ------------------------------------------------------------------------
    Subscribe Curious Grids 💫
    Connect with us on :-
    🐦 Twitter - / curiousgrids
    👾 Discord Server - / discord
    🚀 GitHub - github.com/CuriousGrids
    ------------------------------------------------------------------------
    Tags :-
    pip invalid syntax python, pip install python, pip error in python, pip not recognized as internal or external command, pip on mac, pip install mac, pip terminal mac, how to install pip on mac, pip install invalid syntax in command prompt, pip is not recognized, python 3.8 pip syntax error, pip install invalid syntax jupyter notebook, install pip,upgrade pip, pip install syntax, pip is not defined
  • Věda a technologie

Komentáře • 17

  • @CuriousGrids
    @CuriousGrids  Před 3 lety +1

    STEPS :-
    1. curl bootstrap.pypa.io/pip/2.7/get-pip.py > get-pip.py
    (Don't use the url which is in the video, they've updated the url. Instead use this "updated" one 👆 )
    2. sudo python get-pip.py
    OR
    2. sudo python3 get-pip.py (this will install pip where python3 is installed)
    3. Restart terminal and check the pip version by command "pip --version".

  • @emotionless1773
    @emotionless1773 Před rokem

    Thank you very much
    👍

  • @yohanmax6533
    @yohanmax6533 Před 2 lety

    Thank you dear,It helps me much

  • @rogueDukakis
    @rogueDukakis Před 3 lety +2

    Was getting pretty frustrated and then I found your video. Thanks for saving the day.

  • @__thytran
    @__thytran Před 2 lety

    maany thanks ! you saved my day

  • @roivinikmossel2998
    @roivinikmossel2998 Před 2 lety

    Didn't work for me when I tried to write the very first line it still gave me the SyntaxError:invialid syntax.

  • @barbosa1543
    @barbosa1543 Před 2 lety

    I've tried everything but I can't solve this error, I use version 3.5.1

  • @luciferkhiljie
    @luciferkhiljie Před 3 lety

    Great and useful.

  • @user-xp7ih9rj3p
    @user-xp7ih9rj3p Před 2 lety

    Thank you! You are a hero! It fucking works! You saved my day!

  • @Arthur_____66
    @Arthur_____66 Před 3 lety

    Can i use these steps in windows

    • @CuriousGrids
      @CuriousGrids  Před 3 lety +1

      Hey! I don't know if there are any commands like sudo and curl in windows. But if there is any alternate option then it should work.

  • @philtoa334
    @philtoa334 Před 3 lety

    ok good job : )