Coder Social home page Coder Social logo

Comments (3)

anuradhawick avatar anuradhawick commented on July 16, 2024 2

@michaelwoodworth Thanks for your query. We have updated the code with the help of @alienzj that makes installation much easier for everybody including non-computer scientists.

With referencing to your cluster environment, one solution would be to install graphbin as user with pip3 install . --user. This is possible with our new release. However, if you still cannot install I have 2 workarounds that we use in our cluster NCI Australia.

  1. Using conda environments.

This way you can install conda to a location on the cluster that you have permission and initialize in bash_rc. Go to Anaconda Website and download the installer. Then run sh ANACONDA_INSTALLER.sh. Afterwards, you can use conda command from your login node and install dependencies and run GraphBin code without having to run pip install. Make sure you install all dependencies to your conda environment before you run graphbin.

  1. Using Linux modules and a python path in your project space in the cluster.

However, using conda might not help you in a cluster due to inode limitations. So you can follow the following steps. Assuming you have Linux modules in your cluster. Please run module avail python to ensure you have a python 3+ version in the cluster to load.

module load python/3.7
pip install -v --no-binary :all: --prefix=/short/your/directory/name .

Most likely when you import the python module pip3 will be aliased to pip in the cluster. This command will install graphbin in path /short/your/directory/name. Then in your job script please add the following.

module load python/3.7
export PYTHONPATH=$PYTHONPATH:/short/your/directory/name/lib/python3.7/site-packages
export PATH=$PATH:/short/your/directory/name/bin

Then you'll have access to graphbin program. This could be the most desired option considering the nature of file systems in clusters and inode limitation.

Please let us know if there are more issues popping. We are happy to help always.

I hope this helps you with your research work! Cheers. 👍

from graphbin.

alienzj avatar alienzj commented on July 16, 2024 1

mamba install -c conda-forge python-igraph

from graphbin.

Vini2 avatar Vini2 commented on July 16, 2024

Closing this issue after improving the code.

from graphbin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.