Skip to content Skip to sidebar Skip to footer

Installing Functools Gives Me Attributeerror 'module' Object Has No Attribute 'compose'

I installed Ubuntu 12.04 64 bit on a new system, and cannot install functools. I have installed this multiple times but do not remember getting this error, and cannot find any solu

Solution 1:

Python2.7 comes with the functools module included.

You can install functools32 if you want to get the lru-cache decorator, which was introduced with Python3.2.

Edit: I actually checked this. I got the same error when I tried to pip-install functools with Python2.7. Simply do import functools and proceed as usual.

Solution 2:

Make sure that it is functools32 in python version 2.x. In 3.x the tools come inbuilt.

Solution 3:

Got a solution on windows.

  1. Delete anything reference to functools in site-packages folder.
  2. easy_install -U pip==7.1.2

Post a Comment for "Installing Functools Gives Me Attributeerror 'module' Object Has No Attribute 'compose'"