Skip to content

Conversation

@LukasHedegaard
Copy link

Updated environment.yml due to issues described in #72

Environment updated from python 2.7 to 3.7.

Tested on macOS using conda 4.8.2.

@LukasHedegaard
Copy link
Author

Tested on Ubuntu 18.04.4 LTS as well

@HissamShk
Copy link

Hello,

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

  • ffmpeg=2.8.6
  • numpy==1.18.4
  • youtube-dl==2020.5.8
  • libcxx=10.0.0_
    I am new to this and was hoping you could offer me some help, as to why these may be occuring. I am utilizing Ubuntu 20.04.

Thank you.

@HissamShk
Copy link

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

@anson-07
Copy link

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
Copy link
Author

LukasHedegaard commented Jul 21, 2020

@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
Copy link

@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
Copy link

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
Copy link

Awesome! thanks!

@ebyrne
Copy link

ebyrne commented Jun 13, 2023

+1 here, this should be merged @cabaf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants