Installation Problem #370
-
During the installation "pip installs PySPH", I received an error. I'm using python 3.9.13 and MSVC 2022 Output: pysph/base/cell_indexing_nnps.cpp(3280): error C2169: 'log2': intrinsic function, cannot be defined |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Can you provide more details on this please? Is this from a windows powershell? Or is this from WSL? I am not sure it will help but you can also try to install from the latest version of pysph on github either using: |
Beta Was this translation helpful? Give feedback.
Can you provide more details on this please? Is this from a windows powershell? Or is this from WSL?
This error is unusual,
log2
is only defined within a suitable guard specific to MSVC. Our tests run every week without error on windows as you can see here it ran 3 days ago and the version of MSVC seems the same as yours: https://github.com/pypr/pysph/actions/runs/4149657878/jobs/7178770542I am not sure it will help but you can also try to install from the latest version of pysph on github either using:
pip install https://github.com/pypr/pysph/zipball/master
or via the usualgit clone
and other commands mentioned in the documentation.