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

Google Colab Guided LDA Install Issue #66

Open
chughe22 opened this issue Jan 30, 2023 · 2 comments
Open

Google Colab Guided LDA Install Issue #66

chughe22 opened this issue Jan 30, 2023 · 2 comments

Comments

@chughe22
Copy link

When I try to install guidedlda in google colab I get the following errors:

Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/
Collecting guidedlda
Using cached guidedlda-2.0.0.dev22.tar.gz (2.1 MB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy in /usr/local/lib/python3.8/dist-packages (from guidedlda) (1.21.6)
Building wheels for collected packages: guidedlda
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
Building wheel for guidedlda (setup.py) ... error
ERROR: Failed building wheel for guidedlda
Running setup.py clean for guidedlda
Failed to build guidedlda
Installing collected packages: guidedlda
error: subprocess-exited-with-error

× Running setup.py install for guidedlda did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
Running setup.py install for guidedlda ... error
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> guidedlda

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

@wangjun4
Copy link

Were you able to solve this problem? I am facing the same problem now...
Please let me know if you solved it...

@wangjun4
Copy link

After hours of searching and trying, I was eventually able to make it work on Colab following this method.

More specifically, on Colab:

  1. Install the original LDA package
  • you can just use: !pip install lda
  1. Pull down the repository: /usr/local/lib/python3.9/dist-packages/lda
  2. Drop the *.py files from the GuidedLDA_WorkAround repo in the lda folder under site-packages for your specific enviroment.

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

No branches or pull requests

2 participants