Giter Club home page Giter Club logo

Comments (12)

mztkenan avatar mztkenan commented on June 6, 2024 6

同样也是在anaconda3中conda create虚拟环境,然后conda install了mkl的包,但是一直报错 import mkl
ImportError: No module named mkl。
解决方法如下:
At least for Anaconda python, this can be fixed by installing the package conda install mkl-service, which allows you to call import mkl

from qrec.

bbjy avatar bbjy commented on June 6, 2024 1

你好,请问我在Ubuntu系统下安装了anaconda,然后为这个项目创建了专门的虚拟环境Python版本是2.7.13,并且pip install mkl成功,但是import mkl的时候还是出现了“ImportError: No module named mkl”的错误,但是如果非这个虚拟环境下我的Python版本对应的是3.5,可以成功import mkl,请问你有遇到过吗?你知道这可能是什么问题吗?谢谢! @feanlau

from qrec.

wpenter avatar wpenter commented on June 6, 2024

补充说明一下:在Windows的电脑上也有这个问题的 ​​​​

from qrec.

wpenter avatar wpenter commented on June 6, 2024

3

from qrec.

Coder-Yu avatar Coder-Yu commented on June 6, 2024

你是用的anaconda吗?还是原生的python2.7

from qrec.

wpenter avatar wpenter commented on June 6, 2024

你好,我用的是原生Python2.7,用pycharm作为编辑器的。我刚刚在anaconda运行成功了程序。那请问在原生的Python2.7环境下,是不是要研究安装mkl扩展,才能运行程序的?

from qrec.

Coder-Yu avatar Coder-Yu commented on June 6, 2024

推荐直接用Anaconda吧,基本上自己不用安装包,只要不运行基于tensorflow的算法。mkl我之前有弄过,但过了很久了忘了有没有遇到什么问题,不好意思

from qrec.

wpenter avatar wpenter commented on June 6, 2024

非常感谢您的回复!

from qrec.

Coder-Yu avatar Coder-Yu commented on June 6, 2024

@bbjy 无需额外安装python 原生版,直接用anconda的bin目录下的python运行即可,不会遇到import error。部分算法需要tensorflow建议安装

from qrec.

bbjy avatar bbjy commented on June 6, 2024

@Coder-Yu 感谢您的回复!但是我这边还是没能成功,因为我的anaconda里面的Python是Python3,所以才创建RecQ虚拟环境并指定Python=2.7,但是在Python2.7这个环境里就没能成功安装mkl,只有Python3的环境里有。我再试着弄一下吧,谢谢您!

from qrec.

Coder-Yu avatar Coder-Yu commented on June 6, 2024

@Coder-Yu 感谢您的回复!但是我这边还是没能成功,因为我的anaconda里面的Python是Python3,所以才创建RecQ虚拟环境并指定Python=2.7,但是在Python2.7这个环境里就没能成功安装mkl,只有Python3的环境里有。我再试着弄一下吧,谢谢您!

我建议还是再安装一个anaconda2的环境吧。很简单就解决问题了,为什么一定要弄虚拟环境呢。

from qrec.

bbjy avatar bbjy commented on June 6, 2024

@Coder-Yu 嗯,我也准备这么解决了,谢谢您!

from qrec.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.