activitynet / ActivityNet

This repository is intended to host tools and demos for ActivityNet
MIT License
943 stars 330 forks source link

Update environment.yml #73

Open LukasHedegaard opened 4 years ago

LukasHedegaard commented 4 years ago

Updated environment.yml due to issues described in https://github.com/activitynet/ActivityNet/issues/72

Environment updated from python 2.7 to 3.7.

Tested on macOS using conda 4.8.2.

LukasHedegaard commented 4 years ago

Tested on Ubuntu 18.04.4 LTS as well

HissamShk commented 4 years ago

Hello,

I made the changes as suggested in your environment.yml, but I am still getting some ResolvePackageNotFound errors. They are as follows: _ResolvePackageNotFound:

Thank you.

HissamShk commented 4 years ago

I figured it out. I added conda-forge and it worked. :)

anson-07 commented 4 years ago

I figured it out. I added conda-forge and it worked. :)

How did you create the environment? What's the command line specifically? Thank you in advance

LukasHedegaard commented 4 years ago

@anson-07, I usually use

conda env export --no-builds | grep -v "prefix" > environment.yml

The --no-builds leaves out build-specific information (which may not translate between operating systems) The grep -v "prefix" takes the lines other than those starting with "prefix", thus avoiding your local anaconda env path in the environment.yml file. Hope it helps 😊

anson-07 commented 4 years ago

@anson-07, I usually use

conda env export --no-builds | grep -v "prefix" > environment.yml

The --no-builds leaves out build-specific information (which may not translate between operating systems) The grep -v "prefix" takes the lines other than those starting with "prefix", thus avoiding your local anaconda env path in the environment.yml file. Hope it helps 😊

Thanks for your reply but I'm using Windows and I couldn't find another command to replace the "grep" which is only usable in Linux. Still can't create the environment. conda-forge could work but I'm not sure how the command line is.

mikeyEcology commented 4 years ago

When I run this conda env export --no-builds | grep -v "prefix" > environment.yml on ubuntu 20.04, I get this:

CondaEnvException: Unable to determine environment Please re-run this command with one of the following options:

  • Provide an environment name via --name or -n
  • Re-run this command inside an activated conda environment.
andimarafioti commented 3 years ago

Awesome! thanks!

ebyrne commented 1 year ago

+1 here, this should be merged @cabaf