设为首页收藏本站

EPS数据狗论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 828|回复: 0

[python] Mac下安装Python的numpy库失败的解决方法

[复制链接]

279

主题

1万

金钱

1万

积分

资深用户

发表于 2016-9-26 14:02:12 | 显示全部楼层 |阅读模式
Mac下安装Python的numpy库失败的解决方法
在安装numpy库时,出现了这样的错误:

安装命令:

easy_install numpy

错误:

MacdeMacBook-Pro-3:python mac$ easy_install numpyerror: can't create or remove files in install directoryThe following error occurred while trying to add or remove files in theinstallation directory:    [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/test-easy-install-785.write-test'

什么原因呢?通过分析错误提示,"[Errno 13] Permission denied:"原来是权限问题,需要超级管理员权限:

sudo easy_install numpy

安装成功:

MacdeMacBook-Pro-3:python mac$ sudo easy_install numpyPassword:Searching for numpyBest match: numpy 1.6.2Adding numpy 1.6.2 to easy-install.pth fileUsing /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/pythonProcessing dependencies for numpyFinished processing dependencies for numpyMacdeMacBook-Pro-3:python mac$


作者:Corwien


您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

站长推荐上一条 /1 下一条

客服中心
关闭
在线时间:
周一~周五
8:30-17:30
QQ群:
653541906
联系电话:
010-85786021-8017
在线咨询
客服中心

意见反馈|网站地图|手机版|小黑屋|EPS数据狗论坛 ( 京ICP备09019565号-3 )   

Powered by BFIT! X3.4

© 2008-2028 BFIT Inc.

快速回复 返回顶部 返回列表