conda快速安装依赖包

conda create -n myenv python=3.9 numpy=1.21.0 scipy=1.7.1 astropy=4.3 -c conda-forge

and create .yaml

name: conda_env_name
channels:
  - conda-forge
dependencies:
  - astropy>=6.0
  - astropy-healpix>=1.0.2
  - line_profiler
  - mpi4py>=3.1.1
  - numpy>=1.23
  - pip
  - pre-commit
  - psutil
  - pypandoc
  - python-casacore>=3.5.2
  - pytest
  - pytest-cov>=5.0.0
  - pytest-xdist
  - pyuvdata>=2.4.3
  - pyyaml>=5.4.1
  - scipy>=1.8
  - setuptools_scm>=8.1
  - sphinx
  - pip:
    - pyradiosky>=0.2
    - lunarsky>=0.2.2
    - git+https://github.com/aelanman/analytic_diffuse

the order below will crated an virtual enviroment named conda_env_name, which don't need to created an conda env first.

conda env create -f environment.yaml
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。