Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pymysql on macos seirra
#1
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.
Reply
#2
You're better off downloading the wheel: https://pypi.python.org/packages/c6/42/c...82b831f97d
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
Reply
#3
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?
Reply
#4
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.
Reply
#5
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?
Reply
#6
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python installation for old MacOS Yonix 1 452 Sep-21-2023, 03:32 PM
Last Post: menator01
  Why is IDLE not opening on a MacOS Montery 12.6 and using Python 3.10.7? Merlin385 7 1,571 Oct-08-2022, 08:36 PM
Last Post: Merlin385
Lightbulb MacOS can't make it Archi 1 1,159 May-29-2022, 07:38 AM
Last Post: Larz60+
  Text widget -macOS apffal 1 1,689 Sep-23-2021, 10:12 PM
Last Post: apffal
  pymysql can't do SELECT * Pedroski55 3 2,877 Sep-11-2021, 10:18 PM
Last Post: Pedroski55
  Installing Python3 on MacOS using brew zazas321 5 5,021 May-28-2021, 06:19 AM
Last Post: perfringo
  pyMySQL - ROW_NUMBER in SQL statement JayCee 1 2,329 Apr-12-2020, 08:40 PM
Last Post: JayCee
  pyMySQL How do I get the row id JayCee 3 2,648 Apr-12-2020, 08:38 PM
Last Post: JayCee
  Building from source on MacOS: installing certificates ardim 1 1,914 Feb-09-2020, 10:16 PM
Last Post: ardim
  can't open excel with my macos dcc 0 2,324 Oct-30-2019, 04:18 AM
Last Post: dcc

Forum Jump:

User Panel Messages

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