-1

我在 Pycharm 上并希望安装 pyansys 包,但我不断收到此错误:

Collecting pyansys
  Using cached pyansys-0.61.3.tar.gz (11 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [21 lines of output]
     
      *** PyAnsys has moved (and expanded!) ***
     
      To use PyAnsys you need to install the applicable packages for your
      product:
     
      MAPDL:
     
      - ``pip install ansys-mapdl-core``
     
      MAPDL Post-Processing:
     
      - ``pip install ansys-mapdl-reader``
      - ``pip install ansys-dpf-core``
      - ``pip install ansys-dpf-reader``
     
      PyAEDT
     
      - ``pip install pyaedt``
     
     
      [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.

所以我继续安装除了其中一个包之外的所有包。我还安装了cython。唯一无法安装的软件包是 ansys-dpf-reader,这是它的错误消息

ERROR: Could not find a version that satisfies the requirement ansys-pdf-reader (from versions: none)
ERROR: No matching distribution found for ansys-pdf-reader

到底是怎么回事?

4

1 回答 1

1

因此,似乎“ansys-dpf-reader”已更改为“ansys-dpf-post”,“pyansys”不再是一个包,但现在已扩展到这 5 个包。安装所有这些将允许正常使用旧的 pyansys。

https://docs.pyansys.com/

于 2022-02-12T03:27:52.683 回答