Home > Enterprise >  How can I install Github project for Google Colab?
How can I install Github project for Google Colab?

Time:06-24

There is a project on github called Fpocket. This project is not being installed with "pip install ...", but developers share installation commands for conda.

conda config --add channels conda-forge
conda install fpocket

I could not open the project from Google colab as described here (StackOverflow)

Also solution below doesn't work (mentioned here (StackOverflow)

!pip install git https://github.com/Discngine/fpocket

I am getting an error like

ERROR: File "setup.py" not found for legacy project git https://github.com/Discngine/fpocket.

Github project link is here

How can I use this project in Google Colab?

CodePudding user response:

You can install fpocket with the following set of commands:

WARNING: initial run will take about 5 minutes or so to install conda and fpocket.

!pip install -q condacolab

import condacolab
condacolab.install()

!conda config --add channels conda-forge
!conda install fpocket

then try running

!fpocket | head -10

to check the installation, in my case I get

***** POCKET HUNTING BEGINS ***** 
! Invalid pdb name given.

:||: fpocket 4.0 :||:
        
Mandatory parameters : 
    fpocket -f --file pdb or cif file                                      
    [ fpocket -F --fileList fileList ] 

which makes me believe that fpocket is installed is ready to go.

  • Related