用于矿体的建筑轮失败

发布于 2025-02-04 07:28:24 字数 2772 浏览 1 评论 0原文

我正在使用Windows 10和Python 3.8.10。当我尝试通过“ PIP安装Minepy”安装Minepy模块时,我会收到一个错误,如下所示:

pip install minepy
C:\Users\sotka>pip install minepy
Collecting minepy
  Using cached minepy-1.2.6.tar.gz (496 kB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy>=1.3.0 in c:\users\sotka\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from minepy) (1.18.1)
Building wheels for collected packages: minepy
  Building wheel for minepy (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [10 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-38
      creating build\lib.win-amd64-cpython-38\minepy
      copying minepy\__init__.py -> build\lib.win-amd64-cpython-38\minepy
      running build_ext
      building 'minepy.mine' extension
      error: [WinError 2] The system cannot find the file specified
      [end of output]

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

  × Running setup.py install for minepy did not run successfully.
  │ exit code: 1
  ╰─> [12 lines of output]
      running install
      C:\Users\sotka\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-38
      creating build\lib.win-amd64-cpython-38\minepy
      copying minepy\__init__.py -> build\lib.win-amd64-cpython-38\minepy
      running build_ext
      building 'minepy.mine' extension
      error: [WinError 2] The system cannot find the file specified
      [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.
╰─> minepy

注意:这是上面提到的软件包的问题,​​而不是PIP。 提示:有关故障的输出,请参见上文。

我已经尝试过的内容:

  1. 更新的PIP,Python
  2. 更新的Visual Studio构建工具
  3. 手动安装了模块,将文件复制到
  4. 手动下载其他模块的非正式Minepy模块并安装了

到目前为止。我会用一些帮助。预先感谢

I'm using windows 10 and Python 3.8.10. When I try to install minepy module via "pip install minepy", I get an error as following:

pip install minepy
C:\Users\sotka>pip install minepy
Collecting minepy
  Using cached minepy-1.2.6.tar.gz (496 kB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy>=1.3.0 in c:\users\sotka\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from minepy) (1.18.1)
Building wheels for collected packages: minepy
  Building wheel for minepy (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [10 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-38
      creating build\lib.win-amd64-cpython-38\minepy
      copying minepy\__init__.py -> build\lib.win-amd64-cpython-38\minepy
      running build_ext
      building 'minepy.mine' extension
      error: [WinError 2] The system cannot find the file specified
      [end of output]

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

  × Running setup.py install for minepy did not run successfully.
  │ exit code: 1
  ╰─> [12 lines of output]
      running install
      C:\Users\sotka\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-38
      creating build\lib.win-amd64-cpython-38\minepy
      copying minepy\__init__.py -> build\lib.win-amd64-cpython-38\minepy
      running build_ext
      building 'minepy.mine' extension
      error: [WinError 2] The system cannot find the file specified
      [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.
╰─> minepy

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

What I have already tried:

  1. updated pip, python
  2. updated visual studio build tools
  3. manually installed the module by copying the files to where the other modules are
  4. manually downloaded unofficial minepy module and installed

No luck so far. I'd use some help. Thanks in advance

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文