Git Product home page Git Product logo

conda-autoenv's Introduction

Conda-autoenv: Environments by Directory for Conda

Automatically activate, update, and deactivate conda environments from an environment.yml file in a directory.

If a pip requirements.txt file exists as well, that will also be installed in the environment and updated upon deactivation.

Install ----

$ pip install conda-autoenv
$ echo "source `which conda_autoenv.sh`" >> ~/.bash_profile

Usage ----

Existing environment.yml file, with or without conda environment ~~~~~~~~~~~~~~~~~~~~~~~

If you already have an environment.yml file, place that in your directory (along with your pip requirements.txt file, if applicable), and conda-autoenv will automatically activate that environment and if applicable, create it beforehand.

No environment.yml file, with a conda environment ~~~~~~~~~~~~~~~~~~~~~~~

If you do not have an environment.yml file, but have a conda environment, export your conda environment to an environment.yml file by executing (in the environment's root directory, while your environment is activated):

$ conda env export > environment.yml

[Optional] You may also want your pip packages to automatically be activated and updated with your environment. If so, execute:

$ pip freeze > requirements.txt

No conda environment or environment.yml file (yet!) ~~~~~~~~~~~~~~~~~~~~~~~

If you do not have a conda environment, create one by executing (replace ENV_NAME with the name you would like to call your environment):

$ conda create -n ENV_NAME

Then, activate your environment by executing (replace ENV_NAME with the name you gave your environment):

$ source activate ENV_NAME

Finally, export your environment to an environment.yml file to be automatically activated later:

$ conda env export > environment.yml

[Optional] You may also want your pip packages to automatically be activated and updated with your environment. If so, execute:

$ pip freeze > requirements.txt

conda-autoenv's People

Contributors

danielsuo avatar sharonzhou avatar

Watchers

 avatar  avatar

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.