安装mysqlclient 不成功 换mysql-connector-python

在mac上安装mysqlclient  死活装不上。

报错

    ld: library not found for -lssl
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    error: command 'clang' failed with exit status 1

找里很多资料,试图解决报错问题,最后都无一善终。最后

http://www.runoob.com/django/django-model.html的评论里找到 gmax 同学如下替代方案,我就是那萌新!!!

对于死活装不上 mysqlclient 的,换链接库吧:

sudo apt install python-mysql.connector # 看实际情况 。我的装了就不用了。不通系统命令不同
pip install mysql-connector-python

修改 ENGINE 配置:

DATABASES = {
    'default': {
        'ENGINE': 'mysql.connector.django',  # 链接配置换成这个
        'NAME': 'test',
        'USER': 'test',
        'PASSWORD': 'test123',
        'HOST':'localhost',
        'PORT':'3306',
    }
}

致敬还在躺坑的萌新!

关于“安装mysqlclient 不成功 换mysql-connector-python”我的63个想法

  1. Pingback: alegra
  2. Pingback: best CBD oil
  3. Pingback: best CBD gummies
  4. Pingback: education
  5. Pingback: best CBD gummies
  6. Pingback: proxy website
  7. Pingback: CBD oil
  8. Pingback: Royal CBD
  9. Pingback: buy CBD oil
  10. Pingback: Royal CBD oil 500mg
  11. Pingback: Royal CBD
  12. Pingback: CBD for pain
  13. Pingback: Royal CBD pills
  14. Pingback: CBD cream
  15. Pingback: best CBD
  16. Pingback: carte prepagate
  17. Pingback: CBD oil
  18. Pingback: app download for pc
  19. Pingback: male p spot toys
  20. Pingback: weed stores near me
  21. Pingback: hot nurse lingerie
  22. Pingback: vibrators for women
  23. Pingback: life size masturbator
  24. Pingback: CBD capsules
  25. Pingback: butterfly stimulator
  26. Pingback: CBD capsules
  27. Pingback: doctor7online.com
  28. Pingback: Royal CBD
  29. Pingback: CBD store
  30. Pingback: CBD oil
  31. Pingback: CBD gummies
  32. Pingback: CBD pills
  33. Pingback: CBD cream
  34. Pingback: CBD gummies
  35. Pingback: Royal CBD gummies
  36. Pingback: penis enhancement
  37. Pingback: anal plugs
  38. Pingback: flour mill
  39. Pingback: dank vapes
  40. Pingback: CBD products
  41. Pingback: Royal CBD
  42. Pingback: CBD oil
  43. Pingback: Scarlet macaw
  44. Pingback: Buy 4-AcO-DMT
  45. Pingback: Glock Store
  46. Pingback: Buy DMT Online
  47. Pingback: ciprofloxacina

发表评论

电子邮件地址不会被公开。 必填项已用*标注