Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pymysql on macos seirra
hello, I downloaded pymysql.tar.gz. I am wondering on macos seirra, which directory does it goes in? I try to stick with python3. Anbd also, do I need to do any manual configuration on mysql and/or apache? thanks.
You're better off downloading the wheel:
If you do this, then once downloaded:
  • cd to the directory containing the wheel file
  • using cmndr or other terminal software, type:
    pip install wheelname
Thanks for the reply.
I am not sure I understand what you mean. Anyhow, I wrote a python3 script that uses pymysql but it was running in Linux. Now I want it to be able to run on my Mac as well, I am stuck because I don't have pymysql on the Mac's weberver installation. I google it but ther doesn't seen to have a comprehensive totural abot it. I am not sure on the where the installation directory should be and if there are any configuration I need to edit on the Mac. And also the terminologies on the net confuse me a bit, are python-mysql, python-mysqldb, pymysql all mean the samething?
Does the apple have pip?

You shouldn't have to worry about the destination directory.
when you install pymysql it will be automatically placed in the proper directory.
Thank you for the replay.
Actully, I just realised that pymysql are both /usr/local/lib/python3.6/site-packages/ and /Library/Python/2.7/site-packages/ directories.
However when I do import pymysql, the Mac terninal does n't find it. Is there something with the socket or something like that I need to config?
I'm not familiar with apple, but there is a path associated with python (main directory)
on other OS's. Python knows where the site-packages directory is located.

Possibly Related Threads…
Thread Author Replies Views Last Post
  Text widget -macOS apffal 1 419 Sep-23-2021, 10:12 PM
Last Post: apffal
  pymysql can't do SELECT * Pedroski55 3 558 Sep-11-2021, 10:18 PM
Last Post: Pedroski55
  Installing Python3 on MacOS using brew zazas321 5 1,404 May-28-2021, 06:19 AM
Last Post: perfringo
  pymysql won't handle some diacritic characters awarren2001AD 0 575 Apr-16-2020, 08:58 AM
Last Post: awarren2001AD
  pyMySQL - ROW_NUMBER in SQL statement JayCee 1 1,114 Apr-12-2020, 08:40 PM
Last Post: JayCee
  pyMySQL How do I get the row id JayCee 3 1,301 Apr-12-2020, 08:38 PM
Last Post: JayCee
  PyMySQL return a single dictionary Valon1981 2 822 Feb-20-2020, 04:07 PM
Last Post: Valon1981
  Building from source on MacOS: installing certificates ardim 1 951 Feb-09-2020, 10:16 PM
Last Post: ardim
  can't open excel with my macos dcc 0 1,201 Oct-30-2019, 04:18 AM
Last Post: dcc
  pymysql: formating ouput of query wardancer84 18 4,836 Oct-04-2018, 01:54 PM
Last Post: wardancer84

Forum Jump:

User Panel Messages

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