maciejkula / spotlight

Deep recommender models using PyTorch.
MIT License
2.99k stars 423 forks source link

I ran this command but met problems #106

Closed swan815 closed 6 years ago

swan815 commented 6 years ago

I ran this command:conda install -c maciejkula -c pytorch -c peterjc123 spotlight=0.1.4 but showed the error
conda install -c maciejkula -c pytorch -c peterjc123 spotlight=0.1.3 Fetching package metadata ........... Solving package specifications:

PackageNotFoundError: Packages missing in current channels:

maciejkula commented 6 years ago

What Python version? Which operating system?

swan815 commented 6 years ago

python 2.7 macOS Sierra 10.12.6

swan815 commented 6 years ago

the terminal shows that conda install -c maciejkula -c pytorch -c peterjc123 spotlight=0.1.3 Fetching package metadata ........... Solving package specifications:

PackageNotFoundError: Packages missing in current channels:

We have searched for the packages in the following channels:

maciejkula commented 6 years ago

It looks like you have actually run an installation command for Spotlight 0.1.3 instead of 0.1.4?

Try

conda install -c maciejkula -c pytorch -c peterjc123 spotlight=0.1.4

as per the installation instructions.

maciejkula commented 6 years ago

Also, please have a look at how to format code on Github: https://guides.github.com/features/mastering-markdown/#

swan815 commented 6 years ago

Sorry for the format. I ignored that.

conda install -c maciejkula -c pytorch -c peterjc123 spotlight=0.1.4
Fetching package metadata ...
........
Solving package specifications:

PackageNotFoundError: Packages missing in current channels:

spotlight 0.1.4* -> pytorch 0.3.1.* -> mkl >=2018
We have searched for the packages in the following channels:

https://conda.anaconda.org/maciejkula/osx-64
https://conda.anaconda.org/maciejkula/noarch
https://conda.anaconda.org/pytorch/osx-64
https://conda.anaconda.org/pytorch/noarch
https://conda.anaconda.org/peterjc123/osx-64
https://conda.anaconda.org/peterjc123/noarch
https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/osx-64
https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/noarch

I tried 0.1.4, but showed the same problem.

maciejkula commented 6 years ago

Maybe the Tsinghua conda mirror doesn't have the right packages? Can you try not using the mirror?

On Fri, 6 Apr 2018, 16:48 Swan, notifications@github.com wrote:

Sorry for the format. I ignored that.

conda install -c maciejkula -c pytorch -c peterjc123 spotlight=0.1.4 Fetching package metadata ... ........ Solving package specifications:

PackageNotFoundError: Packages missing in current channels:

spotlight 0.1.4 -> pytorch 0.3.1. -> mkl >=2018 We have searched for the packages in the following channels: https://conda.anaconda.org/maciejkula/osx-64https://conda.anaconda.org/maciejkula/noarchhttps://conda.anaconda.org/pytorch/osx-64https://conda.anaconda.org/pytorch/noarchhttps://conda.anaconda.org/peterjc123/osx-64https://conda.anaconda.org/peterjc123/noarchhttps://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/osx-64https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/noarch

I tried 0.1.4, but showed the same problem.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/maciejkula/spotlight/issues/106#issuecomment-379276647, or mute the thread https://github.com/notifications/unsubscribe-auth/ACSCA92VMtEsYYS9K3Wmp9QKVkItclQgks5tl4A7gaJpZM4TJxBB .

mszep commented 6 years ago

FWIW, I'm getting the same thing. Python 3.6.2 (miniconda) on fedora 27

marks@localhost ~/d/n/m/r/model_testing> conda install -c maciejkula -c pytorch -c peterjc123 spotlight=0.1.4                                                         (usecases) 
Fetching package metadata ...............
Solving package specifications: 

PackageNotFoundError: Packages missing in current channels:

  - spotlight 0.1.4* -> pytorch 0.3.1.* -> mkl >=2018
  - spotlight 0.1.4* -> pytorch 0.3.1.* -> cudnn 7.0.*

We have searched for the packages in the following channels:

  - https://conda.anaconda.org/maciejkula/linux-64
  - https://conda.anaconda.org/maciejkula/noarch
  - https://conda.anaconda.org/pytorch/linux-64
  - https://conda.anaconda.org/pytorch/noarch
  - https://conda.anaconda.org/peterjc123/linux-64
  - https://conda.anaconda.org/peterjc123/noarch
  - https://repo.continuum.io/pkgs/free/linux-64
  - https://repo.continuum.io/pkgs/free/noarch
  - https://repo.continuum.io/pkgs/r/linux-64
  - https://repo.continuum.io/pkgs/r/noarch
  - https://repo.continuum.io/pkgs/pro/linux-64
  - https://repo.continuum.io/pkgs/pro/noarch

marks@localhost ~/d/n/m/r/model_testing> python --version                                                                                                             (usecases) 
Python 3.6.2 :: Continuum Analytics, Inc.
marks@localhost ~/d/n/m/r/model_testing>

No change even after installing latest pytorch release following instructions on pytorch.org.

However, I was able to install spotlight version 0.1.1 by omitting the version specification from the previous command. Is there a reason for it to be set up this way?

maciejkula commented 6 years ago

I made a separate repo with a CI build to reproduce this, but everything looks fine. Can you have a look at the installation script and see if that gives you a hint as to what is wrong?

mszep commented 6 years ago

Interesting; given that a freshly installed conda works, I tried doing conda update conda (outside of any environment) and that resolved the issue. Perhaps one of the other channels relies on a new feature of conda or something?

On a related note, would you accept a PR which would enable users to install with pip as well? Or is that not feasible due to dependencies like CuDNN or MKL?

maciejkula commented 6 years ago

Sure, let's try making it work with pip. I think PyTorch used to be only available on conda, but seeing as it's now on pip as well there is no reason Spotlight shouldn't be.

maciejkula commented 6 years ago

Closing now but happy to re-open for pip uploading.