ContinuumIO / anaconda-issues

Anaconda issue tracking
646 stars 220 forks source link

Pyowm package not available #12962

Open friente opened 2 years ago

friente commented 2 years ago

Checklist

Package info

  1. pyowm
  2. https://anaconda.org/auto/pyowm
  3. Package latest version: https://pypi.org/project/pyowm/

Problem

I'm having issues installing the pyowm package from anaconda. The package is supposed to be there:

https://anaconda.org/auto/pyowm

but it is more than 8 year old. It would be possible to update the version to 3.3.0 and make it available to install it with conda?

Thanks for you support.

Additional Context

No response

CheeseMochi commented 2 years ago

I'd like to clarify what the request is on this issue.

Is the issue that you can't install the current version of pyowm that's available at https://anaconda.org/auto/pyowm ? If so, please provide a little more information about the error you're getting when trying to install.

Is the issue the fact that there is only a very old version available? If so, it's up to the owner of the "auto" channel on anaconda.org. The packages on anaconda.org are all user managed and maintained. It's meant to be a site where anyone can upload and distribute packages, so you'd need the owner of "auto" to provide the latest.

Another option, if the version you want is not available anywhere on anaconda.org (it looks like it's not), is to install it from pip into your environment. see https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-pkgs.html?highlight=pip#installing-non-conda-packages

friente commented 2 years ago

Sorry for not being clear. The problems are two:

  1. Cannot install the current version of pyowm available on https://anaconda.org/auto/pyowm Indeed, from Anaconda when I try to search for the package it cannot find it. If I try from the terminal conda install pyowm I get the following:
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.

PackagesNotFoundError: The following packages are not available from current channels:

  - pyowm

Current channels:

  - https://conda.anaconda.org/auto/win-64
  - https://conda.anaconda.org/auto/noarch
  - https://repo.anaconda.com/pkgs/main/win-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/win-64
  - https://repo.anaconda.com/pkgs/r/noarch
  - https://repo.anaconda.com/pkgs/msys2/win-64
  - https://repo.anaconda.com/pkgs/msys2/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.
  1. The second problem is that the package that is apparently available on the Anaconda repository is pretty old, even if it cannot be installed. But you already answered this question.

Referring to (1), do you know why the current version (old one) cannot be installed?

CheeseMochi commented 2 years ago

It looks like the reason you can't even install the older version is that there's only a linux-64 build available, but I can tell from your channel config that you're on a win-64 system. You can see this from the package page (there's only a little green box for linux-64 under conda install) or from the files page (https://anaconda.org/auto/pyowm/files ). It appears that whoever owns that channel only created a linux build and that's it.

I think your best options at this point are to either install from pip or you could look into creating the conda package yourself from source, but that comes with a bit of a learning curve.