安装库之前一定要注意python版本,今天鬼迷日眼的装一堆堆库,一个回车冒出来这个鬼问题。百度无果后灵光乍现,只安装报错时对应的库:
conda install numpy==1.20.1
结果在输出里找出这一段:
Specifications: - numpy==1.20.1 -> python[version='>=3.7,<3.8.0a0|>=3.8,<3.9.0a0|>=3.9,<3.10.0a0'] Your python: python=3.10 If python is on the left-most side of the chain, that's the version you've asked for. When python appears to the right, that indicates that the thing on the left is somehow not available for the python version you are constrained to. Note that conda will not change your python version to a different minor version unless you explicitly specify that.
可以看出,该库支持的python版本与当前环境并不匹配,重新建个对应python版本的库开始下载就好了。
标签:14.0,Get,python,Visual,Studio,https,visualstudio From: https://www.cnblogs.com/peiziming/p/18196827