{"action":"created","issue":{"url":"https://api.github.com/repos/conda/conda/issues/2350","repository_url":"https://api.github.com/repos/conda/conda","labels_url":"https://api.github.com/repos/conda/conda/issues/2350/labels{/name}","comments_url":"https://api.github.com/repos/conda/conda/issues/2350/comments","events_url":"https://api.github.com/repos/conda/conda/issues/2350/events","html_url":"https://github.com/conda/conda/issues/2350","id":147960844,"number":2350,"title":"Exporting conda environments - can the channel information be included?","user":{"login":"DamienIrving","id":2062210,"avatar_url":"https://avatars.githubusercontent.com/u/2062210?v=3","gravatar_id":"","url":"https://api.github.com/users/DamienIrving","html_url":"https://github.com/DamienIrving","followers_url":"https://api.github.com/users/DamienIrving/followers","following_url":"https://api.github.com/users/DamienIrving/following{/other_user}","gists_url":"https://api.github.com/users/DamienIrving/gists{/gist_id}","starred_url":"https://api.github.com/users/DamienIrving/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DamienIrving/subscriptions","organizations_url":"https://api.github.com/users/DamienIrving/orgs","repos_url":"https://api.github.com/users/DamienIrving/repos","events_url":"https://api.github.com/users/DamienIrving/events{/privacy}","received_events_url":"https://api.github.com/users/DamienIrving/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-13T06:36:41Z","updated_at":"2016-04-19T04:29:44Z","closed_at":"2016-04-19T04:29:44Z","body":"In constructing the conda environments I use, I install packages from various channels at anaconda.org. When I export those environments using `conda env export`, the resulting `.yml` file doesn't include the channel information.\r\n\r\nFor instance, it will look like this:\r\n```\r\nname: my-environment\r\ndependencies:\r\n- appnope=0.1.0=py27_0\r\n- backports_abc=0.4=py27_0\r\n- biggus=0.13.0=py27_0\r\n- ...\r\n```\r\nwhen it should look like this:\r\n```\r\nname: my-environment\r\nchannels:\r\n- ioos\r\ndependencies:\r\n- appnope=0.1.0=py27_0\r\n- backports_abc=0.4=py27_0\r\n- biggus=0.13.0=py27_0\r\n- ...\r\n```\r\nI then have to manually edit the file to add the channel information before uploading the environment to anaconda.org. This isn't such a big deal, but for the uninitiated it might cause errors that they can't figure out how to fix (i.e. it isn't immediately obvious that you'd need to manually edit an exported `.yml` file).  "},"comment":{"url":"https://api.github.com/repos/conda/conda/issues/comments/211725309","html_url":"https://github.com/conda/conda/issues/2350#issuecomment-211725309","issue_url":"https://api.github.com/repos/conda/conda/issues/2350","id":211725309,"user":{"login":"kalefranz","id":1418419,"avatar_url":"https://avatars.githubusercontent.com/u/1418419?v=3","gravatar_id":"","url":"https://api.github.com/users/kalefranz","html_url":"https://github.com/kalefranz","followers_url":"https://api.github.com/users/kalefranz/followers","following_url":"https://api.github.com/users/kalefranz/following{/other_user}","gists_url":"https://api.github.com/users/kalefranz/gists{/gist_id}","starred_url":"https://api.github.com/users/kalefranz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kalefranz/subscriptions","organizations_url":"https://api.github.com/users/kalefranz/orgs","repos_url":"https://api.github.com/users/kalefranz/repos","events_url":"https://api.github.com/users/kalefranz/events{/privacy}","received_events_url":"https://api.github.com/users/kalefranz/received_events","type":"User","site_admin":false},"created_at":"2016-04-19T04:29:44Z","updated_at":"2016-04-19T04:29:44Z","body":"Hi @DamienIrving,\r\n\r\nYour best bet right now is to use\r\n\r\n    conda list --explicit > my-environment.txt\r\n    conda create --name new-environment --file my-environment.txt\r\n\r\nI agree it's not ideal, and making channel information a \"first class citizen\" for a package specification is something we're actively working on.\r\n\r\n@dotsdl  I wish.  Actually, while conda envs are incredibly useful, they're (in my opinion) not at all user friendly.  Working to outline a proposal for discussion and input over the next week or so."}}