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

when installing yara-python on Windows 10 OS, there's an error when installing the setup.py #199

Open
Dazzy17 opened this issue Feb 27, 2022 · 3 comments

Comments

@Dazzy17
Copy link

Dazzy17 commented Feb 27, 2022

when installing yara-python using pip method, I get this error, seems like that setup.py is not working on Windows,

pip install yara-python
Defaulting to user installation because normal site-packages is not writeable
Collecting yara-python
  Using cached yara-python-4.1.3.tar.gz (426 kB)
  Preparing metadata (setup.py) ... done
Using legacy 'setup.py install' for yara-python, since package 'wheel' is not installed.
Installing collected packages: yara-python
  Running setup.py install for yara-python ... error
  error: subprocess-exited-with-error

  × Running setup.py install for yara-python did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]
      C:\Program Files\Python310\lib\site-packages\setuptools\dist.py:717: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
        warnings.warn(
      running install
      running build
      running build_ext
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [end of output]

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

× Encountered error while trying to install package.
╰─> yara-python

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

Dazzy17 commented Feb 27, 2022

By the way the python version I'm using is, Python 3.10.2

@mgmacias95
Copy link
Member

Do you have C++ 14.0 or greater installed? I see this error message on the output you shared:

error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/

@Dazzy17
Copy link
Author

Dazzy17 commented Mar 11, 2022

Yes I have it, but the error is gone when I uninstall the Python 3.10 and reinstalled with Python 3.9

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