前言
- 尝试使用pip install pyinterp 直接安装失败
- 尝试使用 conda install -c conda-forge pyinterp
- 尝试使用 conda install -c “conda-forge/label/cf202003” pyinterp
- 构建新的pyinterp虚拟环境安装pyinertp
一、尝试安装
尝试使用 conda install -c conda-forge pyinterp,安装虽然完成了但是运行 import pyinterp出现如下错误。
之后卸载安装包
查看anaconda官网给出的信息,选择conda install -c “conda-forge/label/cf202003” pyinterp
conda install -c "conda-forge/label/cf202003" pyinterp
安装成功,并且能够顺利运行
但是因为我默认安装的python是3.9,而pyinterp适用python3.7 3.8。因此构建一个新的虚拟环境安装pyinterp
conda create -n env_name python=xxx
conda create -n Pyinterp python=3.7
总结
安装子程序包如果失败,一定要多尝试几种方法。