1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] Setup.py install error - ModuleNotFoundError: No module named 'ethereum'

Discussão em 'Python' iniciado por Stack, Setembro 16, 2024.

  1. Stack

    Stack Membro Participativo

    I'm trying to install a package using setup.py for a project. When I run the command python setup.py install, I receive a deprecation warning about using setup.py directly. Despite this, the installation proceeds but fails with a fatal error.

    The error suggests that the file assert.h could not be found and that the Microsoft Visual Studio build tools are failing during the compilation.

    Error :

    (py_venv) C:\Users\Vijay.VC-VIJAYPATIL\vc_project\inhouse_projects\ethash-master>python setup.py install
    C:\Users\Vijay.VC-VIJAYPATIL\anaconda3\envs\py_venv\lib\site-packages\setuptools\_distutils\cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
    !!

    ********************************************************************************
    Please avoid running ``setup.py`` directly.
    Instead, use pypa/build, pypa/installer or other
    standards-based tools.

    See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
    ********************************************************************************

    !!
    self.initialize_options()
    C:\Users\Vijay.VC-VIJAYPATIL\anaconda3\envs\py_venv\lib\site-packages\setuptools\_distutils\cmd.py:66: EasyInstallDeprecationWarning: easy_install command is deprecated.
    !!

    ********************************************************************************
    Please avoid running ``setup.py`` and ``easy_install``.
    Instead, use pypa/build, pypa/installer or other
    standards-based tools.

    See https://github.com/pypa/setuptools/issues/917 for details.
    ********************************************************************************

    !!
    self.initialize_options()
    warning: no files found matching 'src\libethash\util.c'
    cl : Command line warning D9002 : ignoring unknown option '-std=gnu99'
    internal.c
    src/libethash/internal.c(23): fatal error C1083: Cannot open include file: 'assert.h': No such file or directory
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.41.34120\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2

    Continue reading...

Compartilhe esta Página