pip SyntaxError: invalid syntax [SOLVED] | (UPDATE: Follow the latest steps in the description👇)
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
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".
Thank you very much
👍
Thank you dear,It helps me much
Welcome!
Was getting pretty frustrated and then I found your video. Thanks for saving the day.
Welcome :)
maany thanks ! you saved my day
:)
Didn't work for me when I tried to write the very first line it still gave me the SyntaxError:invialid syntax.
I've tried everything but I can't solve this error, I use version 3.5.1
Great and useful.
Thank you! You are a hero! It fucking works! You saved my day!
Yup :)
Can i use these steps in windows
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.
ok good job : )
Thanks! Don't forget to subscribe :)