我安装这个包的时候,python版本是3.9,发现最新python版本安装其他包都有好多问题…所以尽量不要用太新的版本。
Lightkurve官网:http://docs.lightkurve.org/whats-new-v2.html
清华镜像源:https://pypi.tuna.tsinghua.edu.cn/simple/
阿里云镜像源:https://mirrors.aliyun.com/pypi/simple/
2022.12.5
发现安装这个包的时候出现很多玄学错误貌似跟python版本关系不大。因为我用了很多其他线上的平台没有出现问题,Linux系统也没有出现问题,我在想是否是因为Win11系统的原因。
如果你们用的是Anaconda科学环境包,养成好习惯,做一个新项目的时候,创建一个新环境。python版本建议3.9以下,不然可能会出现未知错误。
conda create -n your_env_name python=3.9
python -m pip install lightkurve [--upgrade]
pip install oktopus==0.1.2 -i https://pypi.tuna.tsinghua.edu.cn/simple/

pip install pytest-runner -i https://mirrors.aliyun.com/pypi/simple/
python -m pip install lightkurve -i https://mirrors.aliyun.com/pypi/simple/
(your_env_name) C:/PATH> python
Python 3.9.13 (main, Oct 13 2022, 21:23:06) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import lightkurve
>>>