本文介绍了没有名为cntk的模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

from __future__ import print_function # Use a function definition from future version (say 3.x from 2.7 interpreter)
import matplotlib.image as mpimg
import matplotlib.pyplot as plt
import numpy as np
import sys
import os

import cntk as C

%matplotlib inline

我收到错误:


推荐答案

从任何终端启动jupyter笔记本。在该终端中输入 pip install cntk 。然后从相同的位置启动jupyter笔记本。

From whatever terminal you are starting your jupyter notebook. Type pip install cntk in that terminal. Then start your jupyter notebook from the same.

如果您使用的是anaconda环境。启动该虚拟环境的终端,您的提示符现在应显示(yourenv)用户名:,然后通过运行相同的 pip install cntk ,或者如果它在 conda 发行版中可用,请使用 conda install cntk

If in case you are using anaconda environments. Start the terminal of that virtual environment, your prompt should now say (yourenv)username: then install by running the same pip install cntk or if it's available in conda distributions use conda install cntk.

这篇关于没有名为cntk的模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-18 13:45