【问题标题】:ModuleNotFoundError: No module named 'photutils.geometry.circular_overlapModuleNotFoundError: No module named \'photutils.geometry.circular_overlap
【发布时间】:2022-12-27 23:51:31
【问题描述】:

I'm trying to install the latest version ofphotutils(version 1.5) on my google-colab. Since it requires python >= 3.8, I first install python 3.8 using the code below. I also change the sys.path, and I install photutils successfully using pip. The problem is that when Iimport photutilsI get the following Error. I also tried to install photutils using conda but the result is the same.

/usr/local/lib/python3.8/sitepackages/photutils/geometry/__init__.py in <module>()
      4 """
      5 
----> 6 from .circular_overlap import *  # noqa
      7 from .elliptical_overlap import *  # noqa
      8 from .rectangular_overlap import *  # noqa

ModuleNotFoundError: No module named 'photutils.geometry.circular_overlap

#Here is how I install python 3.8 on my colab:

!wget -O mini.sh https://repo.anaconda.com/miniconda/Miniconda3-py38_4.8.2-Linux-x86_64.sh
!chmod +x mini.sh
!bash ./mini.sh -b -f -p /usr/local
!conda install -q -y --prefix /usr/local jupyter
!python -m ipykernel install --name "py38" --user

import sys
sys.path.append('/usr/local/lib/python3.8/site-packages/')

!pip install photutils==1.5

【问题讨论】:

    标签: module google-colaboratory sys astropy photutils


    【解决方案1】:

    Do you try install photutils most recently version?

    !pip install photutils
    

    Photutils is in 1.6 version. https://photutils.readthedocs.io/en/stable/

    【讨论】:

      猜你喜欢
      • 2022-12-27
      • 2022-12-19
      • 2020-02-10
      • 1970-01-01
      • 1970-01-01
      • 2022-08-24
      • 2022-10-17
      • 2022-08-22
      • 2020-03-03
      相关资源
      最近更新 更多