scramblingbalam / Business_Network_Analysis

Network Analysis for Ross business School Phd Candidate Danyang Li
0 stars 0 forks source link

install python-igraph #2

Open scramblingbalam opened 6 years ago

scramblingbalam commented 6 years ago

correct install should be shared https://github.com/igraph/python-igraph/issues/134

scramblingbalam commented 6 years ago

First attempt: using wheels and the --no-deps flag suggested by https://conda.io/docs/user-guide/tasks/build-packages/wheel-files.html pip install --no-deps python_igraph-0.7.1.post6-cp35-none-win_amd64.whl

scramblingbalam commented 6 years ago

output from above is:

Processing c:\users\scram\documents\school\school of information\2016_fall\iit_in_orgs\python_igraph-0.7.1.post6-cp35-none-win_amd64.whl Installing collected packages: python-igraph Successfully installed python-igraph-0.7.1.post6

scramblingbalam commented 6 years ago

plot doesn't work, it says

plot unavailable so I did conda install pycairo

scramblingbalam commented 6 years ago

using the example from http://igraph.org/python/doc/tutorial/install.html#installing-igraph I get the output

return io.getvalue().encode("utf-8")

AttributeError: 'bytes' object has no attribute 'encode' Out[8]: <igraph.drawing.Plot at 0x1f40695fa58>

scramblingbalam commented 6 years ago

it seems that there are more packages needed to parse and display the text these are listed at I tried: http://igraph.org/python/doc/tutorial/install.html#installing-igraph

Fontconfig Freetype Expat libpng zlib

So I'll try conda install down the list conda install fontconfig but it isn't in current channels

scramblingbalam commented 6 years ago

tried installing freetype with conda install freetype

scramblingbalam commented 6 years ago

running the example after install and spyder restart still gets

AttributeError: 'bytes' object has no attribute 'encode' Out[2]: <igraph.drawing.Plot at 0x1a7f211bc50>

scramblingbalam commented 6 years ago

expat installs with conda install expat

scramblingbalam commented 6 years ago

after install and restart throws

AttributeError: 'bytes' object has no attribute 'encode' Out[2]: <igraph.drawing.Plot at 0x19038248898>

scramblingbalam commented 6 years ago

libpng and zlib were already installed

scramblingbalam commented 6 years ago

install by it's self doesn't seem to work so I continue following directions fro install cutting and pasting the .dll files form the bin folder in to cario

scramblingbalam commented 6 years ago

this also didn't work

scramblingbalam commented 6 years ago

It seems that the real bottle neck is fontconfig which only seems to have a python 2.7 distribution