Skip to content
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

[ASK] No module named 'recommenders' after installing recommenders in Colab #1928

Closed
Shu-x opened this issue May 8, 2023 · 5 comments
Closed
Labels
help wanted Need help from developers

Comments

@Shu-x
Copy link

Shu-x commented May 8, 2023

Description

Hello, I'm trying to use recommenders in Google Colab and I'm getting this error: No module named 'recommenders'.
I am using Python 3.8.10.

I've tried
!pip install recommenders
pip install git+https://github.com/microsoft/recommenders.git

When I run !pip show recommenders it shows that it has been installed.
image

But when I run recommenders.utils.timer import Timer I get an error message.
image

Does anyone know how to resolve this?

@Shu-x Shu-x added the help wanted Need help from developers label May 8, 2023
@Meshael-S
Copy link

I face the same issue and could not solve it
Waiting for help

@SebasAndres
Copy link

I'm having the same issue too! I've tried everything people suggested in the issue #1519, but it didn't work for me 😴

I'm using Pyspark through a virtual environment with Python 3.9.16. Somehow, the recommenders library works outside Jupyter Notebooks, but It doesn't work when I use it within the notebooks. If I do !pip list, the recommenders library is installed (1.1.1).

PD: Neither pip install recommenders nor pip install git+https://github.com/microsoft/recommenders.git worked for me.

Any suggestions 🙏?

@miguelgfierro
Copy link
Collaborator

pip install recommenders should work if you are in python>=3.6, <3.10. The default colab is 3.10, that's why it is not working. This is what I get when I open a colab:

import sys
print(sys.version)
3.10.11 (main, Apr  5 2023, 14:15:10) [GCC 9.4.0]

3.10 is in the backlog, see #1919. We'll implement it as soon as we can.

@shasha920
Copy link

I faced same issue, anyone resolve it?
I try !pip install git+https://github.com/microsoft/recommenders.git
get ERROR: Package 'recommenders' requires a different Python: 3.10.12 not in '<3.10,>=3.6'

@miguelgfierro
Copy link
Collaborator

This is fixed with the new release

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Need help from developers
Projects
None yet
Development

No branches or pull requests

5 participants