MacOS+miniconda+theano安装
Posted pocahontas
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了MacOS+miniconda+theano安装相关的知识,希望对你有一定的参考价值。
-
brew update --debug --verbose
- brew install wget
-
xcode-select --install
- 以上都不行
Error: No such file or directory @ dir_chdir - /usr/local/Cellar
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
这样,在最新的HomeBrew
中,安装的时候就将需要的目录都已经创建完成并且分配了所需的权限,那么在用brew
去安装其他软件的时候就可以不需要sudo
权限直接进行了 -
替换核心软件仓库
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
替换 cask 软件仓库(提供 macOS 应用和大型二进制文件)cd "$(brew --repo)"/Library/Taps/caskroom/homebrew-cask
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git
替换 Bottles 源(Homebrew 预编译二进制软件包)bash(默认 shell)用户:
echo ‘export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles‘ >> ~/.bash_profile
source ~/.bash_profile - brew install wget
- https://docs.conda.io/en/latest/miniconda.html找到合适版本; cd ~
-
wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
- bash Miniconda3-latest-MacOSX-x86_64.sh
Miniconda3 will now be installed into this location: -
/Users/jingyuli/miniconda3.
- 手动加载环境变量来使得conda生效. source ~/.bash_profile
- conda -h. 检验安装成功
接下来theano
- conda create -n theano python=3.5
- conda-env list
- source activate theano
Install requirements and optional packages
- conda install numpy scipy mkl nose sphinx
- pip install parameterized
Install and configure the GPU drivers (recommended) CUDA安装
macbookpro没有英伟达显卡 不支持gpu
以上是关于MacOS+miniconda+theano安装的主要内容,如果未能解决你的问题,请参考以下文章