如何在OS X上安装theano库? [英] How to install theano library on OS X?

查看:115
本文介绍了如何在OS X上安装theano库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的机器学习课程中,我们将开始使用 theano ,深度学习架构的非常知名的库.我都准备使用以下命令安装它:

In my machine learning course we are going to start using theano, a very well known library for deep learning architectures. I all ready installed it with the following command:

$ pip install Theano

顺便说一句,当我想测试它是否正确安装时,python解释器无法找到该模块.我不知道即时安装是否正确.阅读我发现 anaconda 的文档后,首先安装anaconda,然后尝试再次使用pip theano进行安装是否正确? ?这是在MAC OS X上安装此库的正确方法吗?如何正确安装该库以便成功使用theano?

By the way, when i want to test if it installed correctly, the python interpreter can´t fin the module. I dont know if im installing it right. Reading the documentation i found anaconda, is it right to first install anaconda and then try to install again with pip theano?. Is this the right way to install this library on MAC OS X?. How can i install this library correctly in order to use theano succesfully?

推荐答案

Anaconda用于python库.实际上,与点子相反,Anaconda不仅适用于python.您可以在此处了解更多信息: pip和conda有什么区别?

Anaconda is indeed highly recommended for python libraries. In fact, Anaconda is not only for python in contrast to pip. You can read more here: What is the difference between pip and conda?

要安装Theano,我已经安装了Anaconda.我只是简单地做了:

For installing Theano, I had already installed Anaconda. I just simply did:

conda install theano

然后,在Ipython中,我成功导入了theano:

Then, in Ipython, I successfully imported theano:

import theano

这篇关于如何在OS X上安装theano库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆