osx - Homebrew and Macports Installation messed up: Rodeo and Python Modules not working -
i think may have screwed things up. installed rodeo in own installation bundle. , when getting fancy installing multiple libraries in python think versions of python installed macports , homebrew (yes, using both of them together), before of libraries work- realised rodeo giving me prompts install anaconda(which have installed) when try open application. hope have not screwed things til need reboot of os. historically, problem started when attempting use graphing function in igraph python when needed both cairo installed , pycairo(a binding cairo). so, did installed cairo using macports recommended in documentation , attempted unpack pycairo tar file config files did not exits- pass trying use macports , decided install pycairo using homebrew , correspondingly cairo "maybe safer if install same package manager". when original python, anaconda, , rodeo firstly installed using installation wizard on rodeo website.
my problem in 2 parts:
1) how rodeo working again - perhaps make sure aware folders are?
2) how can install cairo , pycairo module work?
i have feeling these 2 problems related.
anyways using mac sierra 10.12.4 , info can give below:
1)when type in python appears /opt/local/bin/python
directory. believe macports installation of python. in addition, can see various versions of python carrying.
which python /opt/local/bin/python justins-mbp:~ justinthong$ python python python-32 python-argcomplete-check-easy-install-script python-config python.app python2 python2-32 python2-config python2.6 python2.6-config python2.7 python2.7-32 python2.7-config pythonw pythonw-32 pythonw2 pythonw2-32 pythonw2.6 pythonw2.7 pythonw2.7-32
2)with reference homebrew, can see have cairo , py2cairo installed when use import py2cairo
doesnt work. somehow along line added python path: /usr/local/lib/python2.7/site-packages/
@ least added list of paths when type sys.paths in rodeo/python terminal (when working @ least). note: import cairo
seemed work fine , not sure whether points cairo in macport installation or homebrew installation- ie folder package points to. can see, cairo existed here.
justins-mbp:~ justinthong$ cd /usr/local/cellar/ justins-mbp:cellar justinthong$ ls cairo gdbm libffi pcre python fontconfig gettext libpng pixman readline freetype glib openssl py2cairo sqlite justins-mbp:site-packages justinthong$ ls 1.10.0_1 setuptools cairo setuptools-32.1.0-py2.7.egg-info easy_install.py sitecustomize.py easy_install.pyc sitecustomize.pyc pip wheel pip-9.0.1-py2.7.egg-info wheel-0.29.0-py2.7.egg-info pkg_resources
so, how resolve this. appreciated? also, input how ide communicates python , folders containing packages , how should link using homebrew(lets forget macports)?
Comments
Post a Comment