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

Can we use mmh3 instead of pyhash? #81

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

StarCycle
Copy link

@StarCycle StarCycle commented May 17, 2024

Can we use mmh3 instead of pyhash?

It's still difficult to install pyhash in Google Colab. My script:

# Switch to python3.8
!apt-get update -y
!apt-get install python3.8 python3.8-distutils
!update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1
!update-alternatives --config python3
!apt-get install python3-pip
!python3 -m pip install --upgrade pip --user

# Install pyhash
!pip install setuptools==57.5
!pip install pyhash

But I still get

Collecting pyhash
  Downloading pyhash-0.9.3.tar.gz (602 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 602.3/602.3 kB 6.7 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: pyhash
  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 pyhash (setup.py) ... error
  ERROR: Failed building wheel for pyhash
  Running setup.py clean for pyhash
Failed to build pyhash
ERROR: Could not build wheels for pyhash, which is required to install pyproject.toml-based projects

By contrast, using mmh3 makes my life much easier!

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

Successfully merging this pull request may close these issues.

None yet

1 participant