【非常重要】国内镜像源或官方自带的源未必包含所有的库,玩python有些库还必须使用pip命令从https://pypi.org/ 获取!
比如你在conda的虚拟环境去安装websocket 你使用 conda install websocket 会安装失败,提示错误:
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
PackagesNotFoundError: The following packages are not available from current channels:
大概的意思就是无法从当前渠道获取,这个库必须从 https://pypi.org/ 这里获取,而从这里获取就必须使用pip来安装了!
所以在conda的虚拟环境中运行命令 pip install websocket就成功了!