mysql - Installing MySQLdb for Python on OSX 10.6 - Error Creating .egg -
running python 2.7 x86 on snow leopard. installed 64 bit mysql avoid conflicts between bit versions. however, still have issues installing mysqldb.
after following this , various other online guides i'm still no closer. output receive during install is:
$ archflags='-arch x86_64' python setup.py install running install running bdist_egg running egg_info writing mysql_python.egg-info/pkg-info writing top-level names mysql_python.egg-info/top_level.txt writing dependency_links mysql_python.egg-info/dependency_links.txt reading manifest file 'mysql_python.egg-info/sources.txt' reading manifest template 'manifest.in' warning: no files found matching 'manifest' warning: no files found matching 'changelog' warning: no files found matching 'gpl' writing manifest file 'mysql_python.egg-info/sources.txt' installing library code build/bdist.macosx-10.6-x86_64/egg running install_lib running build_py copying mysqldb/release.py -> build/lib.macosx-10.6-x86_64-2.7/mysqldb running build_ext copying build/lib.macosx-10.6-x86_64-2.7/mysqldb/release.py -> build/bdist.macosx-10.6-x86_64/egg/mysqldb byte-compiling build/bdist.macosx-10.6-x86_64/egg/mysqldb/release.py release.pyc creating stub loader _mysql.so byte-compiling build/bdist.macosx-10.6-x86_64/egg/_mysql.py _mysql.pyc copying mysql_python.egg-info/pkg-info -> build/bdist.macosx-10.6-x86_64/egg/egg-info copying mysql_python.egg-info/sources.txt -> build/bdist.macosx-10.6-x86_64/egg/egg-info copying mysql_python.egg-info/dependency_links.txt -> build/bdist.macosx-10.6-x86_64/egg/egg-info copying mysql_python.egg-info/top_level.txt -> build/bdist.macosx-10.6-x86_64/egg/egg-info writing build/bdist.macosx-10.6-x86_64/egg/egg-info/native_libs.txt zip_safe flag not set; analyzing archive contents... creating 'dist/mysql_python-1.2.3-py2.7-macosx-10.6-x86_64.egg' , adding 'build/bdist.macosx- 10.6-x86_64/egg' error: dist/mysql_python-1.2.3-py2.7-macosx-10.6-x86_64.egg: permission denied
anyone know going wrong?
chances @ 1 point tried running python setup.py
under sudo
, have dist
directory belonging root. clear out existing dist
subdirectory in build directory , rerun:
sudo rm -rf ./dist archflags='-arch x86_64' python setup.py install
if permission errors in final install step, may need run install
step under sudo
:
sudo bash export archflags='-arch x86_64' /path/to/same/python2.7 setup.py install exit
but it's better not if don't have to.
Comments
Post a Comment