Python Forum
Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Installing fuzzy wuzzy
#1
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?
Reply
#2
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'
Reply
#3
>>> >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...?
Reply
#4
You're still running it in a Python shell. You need to run it from the operating system's command prompt.
Reply
#5
Open the Command prompt and run: pip install fuzzywuzzy

Not the Python interpreter or IDLE.

Press win+r, type cmd, press Enter and you get it.

http://www.digitalcitizen.life/7-ways-la...-windows-8
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply
#6
Great, thanks, got it. Now does anyone have any advice on how to write a fuzzy lookup string parser for excel and .csv files :)
Reply
#7
Read the docs: https://pypi.python.org/pypi/fuzzywuzzy/0.15.0
example: http://stackoverflow.com/questions/38969...-in-python
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Fuzzy Wuzzy how to get my fuzzyratio displayed windingsareuseful 3 249 Apr-04-2024, 05:38 PM
Last Post: deanhystad
  implementation fuzzy logic using sckit fuzzy nana_4895 0 2,092 Oct-21-2019, 03:28 AM
Last Post: nana_4895
  Fuzzy match on text columns within dataframe Nsaibot 0 4,314 Aug-27-2018, 10:52 PM
Last Post: Nsaibot
  Exotic stats problem ; mode, fuzzy clusters, etc amyvaulhausen 5 3,848 Aug-06-2018, 04:10 PM
Last Post: Vysero

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020