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.
pymysql on macos seirra
pymysql on macos seirra
|
Sep-15-2017, 11:56 PM
You're better off downloading the wheel: https://pypi.python.org/packages/c6/42/c...82b831f97d
If you do this, then once downloaded:
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.
Sep-17-2017, 12:56 PM
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?
Sep-17-2017, 03:24 PM
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 | |
Python installation for old MacOS | Yonix | 1 | 1,046 |
Sep-21-2023, 03:32 PM Last Post: menator01 |
|
![]() |
MacOS can't make it | Archi | 1 | 1,852 |
May-29-2022, 07:38 AM Last Post: Larz60+ |
Mysql Syntax error in pymysql | ilknurg | 4 | 3,562 |
May-18-2022, 06:50 AM Last Post: ibreeden |
|
Text widget -macOS | apffal | 1 | 2,220 |
Sep-23-2021, 10:12 PM Last Post: apffal |
|
pymysql can't do SELECT * | Pedroski55 | 3 | 4,067 |
Sep-11-2021, 10:18 PM Last Post: Pedroski55 |
|
Installing Python3 on MacOS using brew | zazas321 | 5 | 8,956 |
May-28-2021, 06:19 AM Last Post: perfringo |
|
pymysql won't handle some diacritic characters | awarren2001AD | 0 | 1,824 |
Apr-16-2020, 08:58 AM Last Post: awarren2001AD |
|
pyMySQL - ROW_NUMBER in SQL statement | JayCee | 1 | 3,016 |
Apr-12-2020, 08:40 PM Last Post: JayCee |
|
pyMySQL How do I get the row id | JayCee | 3 | 3,438 |
Apr-12-2020, 08:38 PM Last Post: JayCee |
|
PyMySQL return a single dictionary | Valon1981 | 2 | 2,814 |
Feb-20-2020, 04:07 PM Last Post: Valon1981 |
Users browsing this thread: 1 Guest(s)