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: 8
    Second Anniversary Name Dropper First Comment Ansys Employee
    ✭✭✭

    Hi @olvicam

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

  • Member Posts: 3
    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: 8
    Second Anniversary Name Dropper First Comment 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: 3
    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

Welcome!

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