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

Install packages after upgrade pip on Colab not works with warning message during installation. #11199

Closed
1 task done
ahmedibatta opened this issue Jun 18, 2022 · 4 comments
Closed
1 task done
Labels
type: support User Support

Comments

@ahmedibatta
Copy link

ahmedibatta commented Jun 18, 2022

Description

I am working on colab and I upgraded python to 3.8 and pip to 22.1.2 and then install Pykeen package but when I am trying to import pykeen, I got an error message that No module named 'pykeen'

Expected behavior

The package should be installed and I can use with import normally

pip version

22.1.2

Python version

3.8

OS

Google chrome

How to Reproduce

  1. I upgraded python on colab to 3.8
  2. check the version of pip
  3. upgraded pip from 20 to 22.1.2 by !pip install --upgrade pip`
  4. install Pykeen package pip install pykeen==1.8.2
  5. I checked if the pykeen installed well or not by !pip list -v | grep mypackage
  6. import Pykeen

Output

1. Python 3.8.1
2. pip 20.0.2 from /usr/local/lib/python3.8/site-packages/pip (python 3.8) 
3. pip 22.1.2 from /usr/local/lib/python3.8/site-packages/pip (python 3.8)
4. installed  with warning message 
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

5. pykeen                 1.8.2               /usr/local/lib/python3.8/site-packages pip
6. ModuleNotFoundError: No module named 'pykeen'

Code of Conduct

@ahmedibatta ahmedibatta added S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior labels Jun 18, 2022
@pfmoore
Copy link
Member

pfmoore commented Jun 18, 2022

I don't know much about colab but you might need to restart your Python session after you install a new package.

@pradyunsg
Copy link
Member

Beyond that, consider reaching out to a group of individuals who use Google Colab (there's probably some sort of community on Slack/Discord/Reddit/mailing list/Discourse etc) for help around the platform.

@pradyunsg pradyunsg added type: support User Support and removed type: bug A confirmed bug or unintended behavior S: needs triage Issues/PRs that need to be triaged labels Jun 18, 2022
@pradyunsg
Copy link
Member

Closing this out, since we're not the right people to help you here. Please reach out to some Colab-specific support platform for assistance.

@dlopezyse
Copy link

dlopezyse commented Jul 5, 2022

Hi @Ahmed-fub if you reset your runtime and rerun your script you should be able to solve the issue

image

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: support User Support
Projects
None yet
Development

No branches or pull requests

4 participants