PyAnsys Installation Error “Microsoft Visual C++ 14.0 or greater is required”

Hello,

I am installing PyAnsys and get the error “Microsoft Visual C++ 14.0 or greater is required”:

But the matter is that I have already got it installed:

Could you give me a hint what is the matter?

Thanks

Tagged:

Welcome!

It looks like you're new here. Sign in or register to get started.

Answers

  • Member, Employee, GitHub-issue-creator Posts: 13
    10 Comments Second Anniversary Name Dropper Ansys Employee
    ✭✭✭

    Hi @olvicam

    Which command did you use? Why aren't you using a virtual environment?

  • Member Posts: 7
    Name Dropper First Comment
    **

    Hi @German Martinez

    Thanks for the feedback.

    I am using the command given in the manual (... -m pip install...).

    Well, I do not use a virtual environment because I am not aware how it impact the matter.
    Could you give me a hint?

    Thanks

  • Member, Employee, GitHub-issue-creator Posts: 13
    10 Comments Second Anniversary Name Dropper Ansys Employee
    ✭✭✭

    It is always recommended to use venv to work with python because otherwise you are installing python packages system-wide and it might find issues with that.

    I would start by creating a venv in your directory:

    1. python3 -m venv .venv
    2. .venv/Scripts/Activate.ps
    3.  
    4. pip install ansys-mapdl-reader
  • Member Posts: 7
    Name Dropper First Comment
    **

    @German Martinez , thanks for your hint and for what I learnt.
    Yes, I created the virtual environment (in Windows PowerShell the second command is

    1. 1. <venv>\Scripts\Activate.ps1

    but it is not any kind of criticism, just to confirm that I did follow your advice).

    Unfortunately it ended up with the same outcome as before...

    So it seams that I have to reinstall the Microsoft Visual C++ if you do not have any other idea...

    Thanks

  • Member Posts: 7
    Name Dropper First Comment
    **

    Hello,
    finally I installed Microsoft Visual C++ Build Tools and then PyAnsys.
    But then when I run a macro which ran before I got the following messages:

    Does anybody have any idea what is the problem?

    Thanks

  • Member, Employee, GitHub-issue-creator Posts: 13
    10 Comments Second Anniversary Name Dropper Ansys Employee
    ✭✭✭

    Hi

    I am glad you figured out the Visual C++ tools part.

    For the other part, I see you have opened another thread for this. So I will reply there and reference it here:

    https://discuss.ansys.com/discussion/4814/crashes-are-to-be-expected-please-report-them-to-numpy-developers#latest

  • Member Posts: 7
    Name Dropper First Comment
    **

    Hi,
    thanks for the feedback.
    Yes, the Visual C++ issue seems to be solved.
    As of another one, I think I have to downgrade Python version to 3.12...
    At least it follows from my search in the Internet...
    Other scripts (not PyAnsys related ones) neither work if numpy is is imported...

  • Member, Employee, GitHub-issue-creator Posts: 13
    10 Comments Second Anniversary Name Dropper Ansys Employee
    ✭✭✭

    Because of problems in some of our dependencies (vtk, pyvista), many PyAnsys libraries haven't updated to Python 3.13 yet. Hopefully soon.

Welcome!

It looks like you're new here. Sign in or register to get started.