-
Notifications
You must be signed in to change notification settings - Fork 747
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
environment.yml ResolvePackageNotFound #41
Comments
Thank you. It worked. |
The whole concept of using yml files is to simplify environment installation on other computers. Why does the |
Ubuntu ResolvePackageNotFound:
Though I've placed these two requirements under pip section in .yml file im getting the same error. Can you help me out? |
It seems that menpo tbb is for osx-64 only, and jlaura::opencv3=3.0.0 is not available for some reason. By slightly omitting the detail in
The initial error was resolved, but I faced another error like this:
There will be more elaborate ways to handle this error, but I took a simple detour like this:
|
This is still haunting me. |
@Aki1987 that worked!! thank you.
|
I had the same problem. It is frustrating, because precisely the point of anaconda is to manage this automatically. I didn't have any pip packages in my environment.yml, all were packages installed by conda. How come conda cannot reproduce and environment I created with conda? The solution I found was to remove all the packages that were installed as dependencies and just leave the packages I myself had installed with conda install packagename. Still, basemap was failing. I removed basemap and it worked. Then I installed basemap with conda install basemap. Finally, I did a _conda env export, which again was full of dependencies (not only the primary I want). I copied the line corresponding to basemap and I manually edited my environment.yml adding this line there. So, now in environment.yml I only have tha packages I would have installed with conda install when I first created the environment. This way, except basemap, the package I import in my python scripts will have the same version they had in the environment. Then, the dependencies are those that conda choses. |
Later I had the same problem importing another environment from an environment.yml. I followed a better procedure than in my previous comment.
Now the environment is almost identical, except for 4 packages whose version changed. |
Just here to commiserate - environment.yml from an Ubuntu project wouldn't install on on OS X. Added a --no-build flag to my export reduced me from loads of packages not found to just 4. I removed those and everything was basically fine.[credit] |
A solution is to create your env without the yml file. Then update it through |
@DavidJulienMillet but how do you create an env without a yml file? I tried 'conda env create' but it just looks for an environment.yml file in the current directory that doesnt exist. |
You can use Though the env update solution didn't work out for me. It is giving the same ResolvePackageNotFound |
running this first |
It works lke a charm! Can you give some explanation for this solution. |
Beautiful |
works for me thanks |
Worked but how? |
I tried to create the environment using .yml file but this is the error I got. How to download these specific packages? I tried installing them via Anaconda navigator but it didn't resolve the issue. ResolvePackageNotFound:
|
worked for me... many thanks! |
I recently a problem with ResolvePackageNotFound and sources: |
this didnt work for me. am working on macOS |
This is a longshot but try
But I copy
Wonder why it fails spectacularly on linux? Perhaps since I'm having to create a py2 env with some really old obsolete pkgs? (But why does it work fine on macos?) I'll update this post if I figure it out. === UPDATE === So, It looks like you need a different env.yml for each platform. Or use just one env.yml but in a docker as detailed here https://repo2docker.readthedocs.io/en/latest/howto/export_environment.html |
I had similar issues when trying to reproduce an environment created on MacOS on an Ubuntu EC2 instance. Using the anaconda guidance for creating cross-platform .yml files that exclude platform specific dependencies solved the issue for me: |
Adding channels to my I noticed the environment described by
I just added the "channels" portion. |
It turns out that the yaml file was generated in Mac OS, and it is not directly usable in Linux. |
Placing the requirements in the pip also did not work for me. I deleted the packages reported by ResolvePackageNotFound in the .yml file, and then Conda is able to install other packages and create the environment. |
Just my 2 cents, my issue was with ta-lib which requires the
|
Did you happen to find a solution for this or have a workaround? |
I am facing this issue currently. The thing is I tried importing the environment on multiple computers to see if it was an issue with my system. The environment imports perfectly on macOS but for windows, it just doesn't work at all. Does anyone know anything about this? |
didn't work for me.sad |
This fixed the pytorch dependency for me. |
This didn't work for me
|
Windows 10 64bit
The text was updated successfully, but these errors were encountered: