Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update requirements.txt (conda/pip) #1

Open
armish opened this issue Jun 6, 2017 · 2 comments
Open

Update requirements.txt (conda/pip) #1

armish opened this issue Jun 6, 2017 · 2 comments
Assignees
Labels

Comments

@armish
Copy link

armish commented Jun 6, 2017

To help with testing while this is in the works. Here is what I did to meet all the requirements:

# Get help from conda for hard-to-install packages
#  and create a new isolated Py3 environment with flask in it
conda create -n mweb python=3 flask
source activate mweb

# Install NN-related ones
conda install -y tensorflow keras theano

# Install ML- and data-related ones
conda install -y numpy scipy pandas scikit-learn

# Install the notorious biopython one
conda install -y biopython

# Now pip-install the rest
pip install mhctools mhcflurry

which can formally be defined as a conda env file:

# run: conda env create --file conda-env.yml
name: mhcweb
channels:
  - bioconda
  - trung
  - conda-forge
dependencies:
  - python=3
  - flask
  - tensorflow
  - keras
  - theano
  - numpy
  - scipy
  - pandas
  - scikit-learn
  - biopython
  - pip:
    - mhctools
    - mhcflurry

and be used to create a fresh conda env via:

conda  env create --file conda-env.yml
source activate mhcweb
@rohanpai
Copy link
Contributor

rohanpai commented Jun 7, 2017

Should I also create a requirements.txt or is a conda.yml file sufficient? @armish

@armish
Copy link
Author

armish commented Jun 7, 2017

if you have this, then you won't need a requirements.txt file since the env dependencies have them all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants