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

I can't install PyHash / PyFastHash #62

Open
HGStyle opened this issue Jul 8, 2022 · 2 comments
Open

I can't install PyHash / PyFastHash #62

HGStyle opened this issue Jul 8, 2022 · 2 comments

Comments

@HGStyle
Copy link

HGStyle commented Jul 8, 2022

I cannot install pyhash / pyfasthash. I updated pip, setuptools and wheels to the latest version.
My terminal :

HGStyle@mxlinux1:~
$ pip install pyhash
Defaulting to user installation because normal site-packages is not writeable
Collecting pyhash
  Using cached pyhash-0.9.3.tar.gz (602 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [5 lines of output]
      /home/HGStyle/.local/lib/python3.7/site-packages/setuptools/config/setupcfg.py:463: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
        warnings.warn(msg, warning_class)
      /home/HGStyle/.local/lib/python3.7/site-packages/setuptools/installer.py:30: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
        SetuptoolsDeprecationWarning,
      error in pyhash setup command: use_2to3 is invalid.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

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

I dont know how to install it, without errors.
Can someone help me ?

@flc
Copy link

flc commented Sep 15, 2022

check #60 and #59
If you want to install 0.9.3 you have to downgrade setuptools to 58 since it removed support for 2to3 during builds. :(

pip install setuptools==58

@PATAPOsha
Copy link

I think it is time to remove that redundant requirement setuptools==58.
It makes in difficult to use with pipenv:

Installing collected packages: setuptools
  Attempting uninstall: setuptools
    WARNING: Ignoring invalid distribution -ymongo (/Users/pata/.pyenv/versions/3.9.13/envs/autods_33/lib/python3.9/site-packages)
    Found existing installation: setuptools 68.2.2
    Uninstalling setuptools-68.2.2:
      Successfully uninstalled setuptools-68.2.2
WARNING: Ignoring invalid distribution -ymongo (/Users/pata/.pyenv/versions/3.9.13/envs/autods_33/lib/python3.9/site-packages)
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
pipenv 2023.3.20 requires setuptools>=67.0.0, but you have setuptools 58.0.0 which is incompatible.

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

3 participants