Re: MySQL Connector wont install with python 3.5
In response to a similar question for python3.4 Nuno Mariz suggested:
Can you please check if you installed MySQL Connector/Python for your Python 3.4.0? If you have the two Python versions installed, the packages folder could be different.
You can easily check the packages folder by running this for both versions in the python shell:
>>> import site; site.getsitepackages()
He's on the mark as indicated below:
192-168-1-10:$ python
Python 2.7.10 (default, Oct 23 2015, 18:05:06)
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import site; site.getsitepackages();
['/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python', '/Library/Python/2.7/site-packages']
>>> ^D
192-168-1-10:$ python3
Python 3.5.0 (v3.5.0:374f501f4567, Sep 12 2015, 11:00:19)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import site; site.getsitepackages();
['/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages', '/Library/Python/3.5/site-packages']
>>> ^D
192-168-1-10:$ ls /Library/Python/2.7/site-packages
README httplib2-0.9.1-py2.7.egg oauth2client-1.4.12-py2.7.egg rsa-3.1.4-py2.7.egg
_mysql_connector.so mysql pip-1.5.6-py2.7.egg simplejson-3.7.3-py2.7-macosx-10.10-intel.egg
easy-install.pth mysql_connector_python_cext-2.1.3-py2.7.egg-info pyasn1-0.1.8-py2.7.egg six-1.9.0-py2.7.egg
google_api_python_client-1.4.1-py2.7.egg mysql_utilities-1.5.4-py2.7.egg-info pyasn1_modules-0.0.6-py2.7.egg uritemplate-0.6-py2.7.egg
192-168-1-10:~ nevdowling$ ls /Library/Python/3.5/site-packages
ls: /Library/Python/3.5/site-packages: No such file or directory
192-168-1-10:$
Now I just need to figure out how to do the install on Python3.5.
It's been awhile since I looked at this so I'll have to do some digging.
Subject
Written By
Posted
December 04, 2015 08:20AM
December 13, 2015 03:05AM
February 02, 2016 05:40AM
Re: MySQL Connector wont install with python 3.5
February 02, 2016 05:55AM
February 18, 2016 08:00PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.