[MacPorts] #63294: py-numpy: No module named 'numpy.core._multiarray_umath'

MacPorts noreply at macports.org
Sun Jul 25 16:30:35 UTC 2021


#63294: py-numpy: No module named 'numpy.core._multiarray_umath'
-----------------------+-----------------------
  Reporter:  fmw42     |      Owner:  michaelld
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.7.1
Resolution:            |   Keywords:
      Port:  py-numpy  |
-----------------------+-----------------------

Comment (by fmw42):

 **I have resolved this issue.**

 **I just needed to restart my computer after editing my .profile to switch
 from python37 to python39.**

 However, I was told that I could have more than one version of
 Python/OpenCV and have both py37-opencv3 and py39-opencv3 installed. I
 modified my .profile to include both python versions as follows:

 export
 PYTHONPATH=/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-
 packages:/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
 /site-packages

 but I can now only run python3.9. If I try to run the same script with
 python3.7, then I get the same message above about Numpy. I do have
 py37-numpy installed.

 **Can you tell me what I need to do so that I can run either version
 without having to switch my .profile and reboot?**

-- 
Ticket URL: <https://trac.macports.org/ticket/63294#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list