Memcached on Heroku w/ Django : can't install pylibmc / memcacheify

后端 未结 4 567
自闭症患者
自闭症患者 2021-02-05 12:45

I\'ve spent a lot of time on this and it\'s clearly beyond my newbie understanding/skills. I tried to install django-heroku-memcacheify with pip install, which throws errors. I

相关标签:
4条回答
  • 2021-02-05 12:57

    Try this:

    sudo apt-get install libmemcached-dev
    
    0 讨论(0)
  • 2021-02-05 13:02

    I've talked to the friendly folks at Heroku and it seems like my requirements.txt setup was causing all the havoc. Don't use a requirements file in root that imports from another requirements file! At least for pylibmc that's not working because libmemcached doesn't get bootstrapped if there is no explicit line with pylibmc in the root requirements file. I hope this will help others avoid wasting the 10 hrs I've spent on this problem. Yay!

    0 讨论(0)
  • 2021-02-05 13:02

    Have you tried something like libmemcached-dev, memcached-dev ? You need SOURCES of libmemcached !

    0 讨论(0)
  • 2021-02-05 13:09

    You need libmemcached installed.

    You don't need the development headers or anything, the regular ones are more than enough!

    If you can't install libmemcached, you can't install pylibmc. Sorry about that but there's not much to do about it.

    There is a way to get around this but it's a crap idea so message me if you want the details.

    0 讨论(0)
提交回复
热议问题