在Mac OS上用virtualenv安装 tensorflow时,按照手册输入 $ sudo easy_install pip
正确时系统会要求你输入密码然后自动寻找最合适的pip,如下:
Password:
Searching for pip
Best match: pip 9.0.1
Adding pip 9.0.1 to easy-install.pth file
Installing pip script to /Library/Frameworks/Python.framework/Versions/2.7/bin
Installing pip3.5 script to /Library/Frameworks/Python.framework/Versions/2.7/bin
Installing pip3 script to /Library/Frameworks/Python.framework/Versions/2.7/bin
Using /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
Processing dependencies for pip
Finished processing dependencies for pip
部分童鞋会遇到安装不成功的现象,系统提示以下这句话:
Please make the appropriate changes for your system and try again.
//对你的系统做适当更改并再试一次
出现这句话代表现在你没有给你的管理员身份添加root权限,可按照下边步骤尝试:
- 点击电脑左上角的小苹果,打开系统便好设置,并寻找用户与群组;
- 选择登陆选项,对网络账号服务器,点击加入
3、点击打开目录实用工具
4、点击上方菜单栏编辑,添加root 用户即可
此时,再次输入sudo easy_install pip即可
在Mac OS上用virtualenv安装 tensorflow出现的问题(一)

最新推荐文章于 2024-09-20 22:28:20 发布
