首页 > 系统服务 > 详细

MacOS+miniconda+theano安装

时间:2019-10-14 00:14:45      阅读:121      评论:0      收藏:0      [点我收藏+]
  1. brew update --debug --verbose

  2. brew install wget
  3. xcode-select --install

  4. 以上都不行

    Error: No such file or directory @ dir_chdir - /usr/local/Cellar

     

    卸载重装homwbrew
    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权限直接进行了
  5. 替换核心软件仓库

    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

  6. brew install wget

  7. https://docs.conda.io/en/latest/miniconda.html找到合适版本; cd ~
  8. wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh

  9. bash Miniconda3-latest-MacOSX-x86_64.sh

    Miniconda3 will now be installed into this location:
  10. /Users/jingyuli/miniconda3.

  11. 手动加载环境变量来使得conda生效.  source ~/.bash_profile
  12. 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安装

原文:https://www.cnblogs.com/pocahontas/p/11669001.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!