安装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',
    }
}

致敬还在躺坑的萌新!

169 thoughts on “安装mysqlclient 不成功 换mysql-connector-python

  1. Pingback: cash for scrap cars calgary

  2. Pingback: Calgary Scrap Car Removal and Auto Salvage

  3. Pingback: professional hairdressing scissor brands

  4. Pingback: alegra

  5. Pingback: elite chinese scissors

  6. Pingback: best CBD oil

  7. Pingback: best CBD gummies

  8. Pingback: education

  9. Pingback: best CBD gummies

  10. Pingback: proxy website

  11. Pingback: CBD oil

  12. Pingback: Royal CBD

  13. Pingback: buy CBD oil

  14. Pingback: Royal CBD oil 500mg

  15. Pingback: CBD gummies for anxiety

  16. Pingback: Royal CBD

  17. Pingback: CBD for pain

  18. Pingback: Royal CBD pills

  19. Pingback: CBD cream

  20. Pingback: best CBD

  21. Pingback: carte prepagate

  22. Pingback: CBD oil

  23. Pingback: Jeremy clarkson net worth

  24. Pingback: app download for pc

  25. Pingback: apps download for windows 8

  26. Pingback: male p spot toys

  27. Pingback: weed stores near me

  28. Pingback: hot nurse lingerie

  29. Pingback: vibrators for women

  30. Pingback: life size masturbator

  31. Pingback: adam and eve 2 in 1 stroker

  32. Pingback: CBD capsules

  33. Pingback: butterfly stimulator

  34. Pingback: CBD capsules

  35. Pingback: doctor7online.com

  36. Pingback: Royal CBD

  37. Pingback: CBD store

  38. Pingback: CBD oil

  39. Pingback: CBD gummies

  40. Pingback: CBD pills

  41. Pingback: CBD cream

  42. Pingback: CBD gummies

  43. Pingback: magic mushroom spore prints for sale

  44. Pingback: best strapon for pegging

  45. Pingback: Royal CBD gummies

  46. Pingback: suction cup base dildo

  47. Pingback: penis enhancement

  48. Pingback: anal plugs

  49. Pingback: flour mill

  50. Pingback: dank vapes

  51. Pingback: CBD products

  52. Pingback: Royal CBD

  53. Pingback: CBD oil

  54. Pingback: best cbd cream for pain

  55. Pingback: best cbd cream for pain

  56. Pingback: generic albuterol inhaler

  57. Pingback: Scarlet macaw

  58. Pingback: Buy 4-AcO-DMT

  59. Pingback: Glock Store

  60. Pingback: Buy Cannabis Oil Online

  61. Pingback: Buy DMT Online

  62. Pingback: cialis 40 mg best price

  63. Pingback: ciprofloxacina

  64. Pingback: best price generic viagra

  65. Pingback: levitra vs viagra

  66. Pingback: where to buy naltrexone

  67. Pingback: slim dildo

  68. Pingback: male masturbators

  69. Pingback: Dank Carts

  70. Pingback: crystal meth for sale

  71. Pingback: Consultant SEO

  72. Pingback: oxycodone online 

  73. Pingback: Buy exotic carts

  74. Pingback: buy ambien online overnight

  75. Pingback: English bulldog puppies for sale

  76. Pingback: احذية رجالى

  77. Pingback: buy CBD oil

  78. Pingback: MALWAREBYTES FOR MAC

  79. Pingback: best CBD oil for arthritis

  80. Pingback: best CBD oil for dogs

  81. Pingback: best CBD oil for sleep

  82. Pingback: best CBD oil for pain

  83. Pingback: best CBD oil

  84. Pingback: best CBD oil for dogs

  85. Pingback: best CBD oil for sleep

  86. Pingback: best CBD cream for arthritis pain

  87. Pingback: buy CBD oil

  88. Pingback: best CBD oil for sleep

  89. Pingback: best CBD oil for arthritis

  90. Pingback: CBD oil for anxiety

  91. Pingback: best CBD oil for pain

  92. Pingback: best CBD oil for anxiety

  93. Pingback: aralen phosphate chloroquine phosphate

  94. Pingback: best CBD oil for pain

  95. Pingback: best CBD oil

  96. Pingback: buy tylenol online

  97. Pingback: best CBD capsules

  98. Pingback: CBD oil near me

  99. Pingback: best CBD gummies

  100. Pingback: best CBD oil

  101. Pingback: best CBD oil

  102. Pingback: best CBD oil

  103. Pingback: best CBD gummies

  104. Pingback: best CBD oil

  105. Pingback: best CBD gummies

  106. Pingback: best CBD gummies

  107. Pingback: best CBD oil

  108. Pingback: best CBD gummies

  109. Pingback: best CBD gummies

  110. Pingback: best CBD gummies

  111. Pingback: free download for pc

  112. Pingback: apps download for windows 8

  113. Pingback: free download for pc windows

  114. Pingback: app free download for windows 7

  115. Pingback: app free download for windows 7

  116. Pingback: free download for pc

  117. Pingback: apps download for windows 10

  118. Pingback: app free download

  119. Pingback: app download for pc

  120. Pingback: games download for pc

  121. Pingback: app for pc

  122. Pingback: app for pc

  123. Pingback: free download for windows 7

  124. Pingback: free laptop games download

  125. Pingback: pc games

  126. Pingback: free pc games download

  127. Pingback: low cost viagra

  128. Pingback: free app for pclaptop

  129. Pingback: free app download

  130. Pingback: free laptop games download

  131. Pingback: apps for pc download

  132. Pingback: chloroquine order

  133. Pingback: free download for pc

  134. Pingback: vape shop near me

  135. Pingback: win at online roulette

  136. Pingback: knight rider kitt

  137. Pingback: how to win at roulette

  138. Pingback: win at online casino

  139. Pingback: win at online roulette

  140. Pingback: make money fast

  141. Pingback: backlink

  142. Pingback: kratom near me

  143. Pingback: bàn học thông minh tphcm

  144. Pingback: CBD oil

  145. Pingback: buy CBD oils

  146. Pingback: best CBD oils

  147. Pingback: best CBD oil

  148. Pingback: CBD oil for pain

  149. Pingback: best CBD oil UK

  150. Pingback: buy CBD oil

  151. Pingback: CBD oil for pain

  152. Pingback: best CBD oils UK

  153. Pingback: best CBD oils UK

  154. Pingback: best CBD oil UK

  155. Pingback: best CBD oil

  156. Pingback: CBD oil for arthritis

  157. Pingback: free instagram followers

  158. Pingback: Buy research chemicals online

  159. Pingback: Buy Percocet online

  160. Pingback: upload file

  161. Pingback: online brands

  162. Pingback: Where to buy white German Shepherd puppies

  163. Pingback: tribunnews

  164. Pingback: Online jobs

  165. Pingback: Make Money from Home

  166. Pingback: Earn Money Online

  167. Pingback: Make Money Fast

  168. Pingback: Make Money from Home

  169. Pingback: bitcoin slots