在安装环境中遇到的各种坑,记录一下自己悲惨的配环境的日子
pip安装locust时报错-ERROR: Could not build wheels for gevent which use PEP 517 and cannot be installed
借用别人的图,我当时没有截图,我是pip安装hdbscan时报错-ERROR: Could not build wheels for gevent which use PEP 517 and cannot be installed,我的问题是在安装openensembles 遇到hdbscan 的一个问题,意思就是让我安装hdbscan,但是遇见如下问题
我此前在自己的电脑上安装没有出现这个问题,所以我对比了一下两台电脑(我现在跑的是服务器),发现我自己电脑上安装的hdbscan的镜像是另外一个清华的镜像,可能是以前安装anaconda的时候我一股脑全配上了。
于是我添加了这个镜像
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
conda config --set show_channel_urls yes
conda config --show能够显示出所有你已经安装好的镜像
然后conda install hdbscan !!! 成功!!开心!!
这是服务器上装好的,
hdbscan 0.8.22 py36h452e1ab_1 https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-f
所以总结是,大部分原因都是网不好,才导致你装不上你想要的包,可以把需要的镜像配好,或者翻墙装软件。
写给自己(op这个包必须用pip按上哦)。