When I look online, I've read that fuzzy wuzzy is included in the pip library, and that to install fuzzy wuzzy you simply write:
pip install fuzzywuzzy
but whenever I try to do this in Python 3.6 IDLE, I get the error message:
SyntaxError: invalid syntax
and it highlights the word install.
Why can't I install Fuzzy Wuzzy?
It's not from IDLE,you run it from command line(cmd).
Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. Med enerett.
C:\Windows\System32>cd\
C:\>pip install fuzzywuzzy
Collecting fuzzywuzzy
Using cached fuzzywuzzy-0.15.0-py2.py3-none-any.whl
Installing collected packages: fuzzywuzzy
Successfully installed fuzzywuzzy-0.15.0
C:\>python
Python 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 07:18:10) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import fuzzywuzzy
>>> fuzzywuzzy.__version__
'0.15.0'
>>> >pip install fuzzywuzzy
File "<stdin>", line 1
>pip install fuzzywuzzy
^
SyntaxError: invalid syntax
>>> C:\>pip install fuzzywuzzy
File "<stdin>", line 1
C:\>pip install fuzzywuzzy
^
SyntaxError: unexpected character after line continuation character
>>> pip install fuzzywuzzy
File "<stdin>", line 1
pip install fuzzywuzzy
^
SyntaxError: invalid syntax
>>>
I'm still receiving a syntax error...?
You're still running it in a Python shell. You need to run it from the operating system's command prompt.
Great, thanks, got it. Now does anyone have any advice on how to write a fuzzy lookup string parser for excel and .csv files :)