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
Hi @olvicam
Which command did you use? Why aren't you using a virtual environment?
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?
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:
python3 -m venv .venv .venv/Scripts/Activate.ps pip install ansys-mapdl-reader
@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. <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...
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?
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
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...
Because of problems in some of our dependencies (vtk, pyvista), many PyAnsys libraries haven't updated to Python 3.13 yet. Hopefully soon.