您的位置:首页 > 编程语言 > Python开发

Mac上安装Python相关扩展包异常

2017-09-24 23:31 309 查看
安装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 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  python pip scikit