安装scikit-learn
1)报错提示
pypi.v2ex.com不是受信的安全节点
chenwenxindembp:bin chenwenxin$ pip install scikit-learn
Collecting scikit-learn The repository located at
pypi.v2ex.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS it is recommended to use HTTPS instead, otherwise you may silence this warning and allow it anyways with '--trusted-host
pypi.v2ex.com'. Could not find a version that satisfies the requirement scikit-learn (from versions: ) No matching distribution found for scikit-learn
解决办法(添加host信任): pip --trusted-host
pypi.v2ex.com install scikit-learn
2)安装中提示对某些目录没有权限
解决办法:加上sudo,sudo pip --trusted-host
pypi.v2ex.com install scikit-learn