我在我的miniconda发行版中添加了芹菜。但是当我尝试运行它时,我收到以下错误
Traceback (most recent call last):
File "C:\Miniconda2\Scripts\celery-script.py", line 6, in <module>
sys.exit(main())
File "C:\Miniconda2\lib\site-packages\celery\__main__.py", line 29, in main
from celery.bin.celery import main
ImportError: No module named celery
通过miniconda(C:\ Miniconda2 python.exe)进入python env并导入芹菜作品
>>import celery
>>
我还安装了Python 2.7,没有芹菜。你觉得那样吗?
答案 0 :(得分:0)
您已回答了自己的问题。在第一个代码块中,您最有可能在override func
collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -> UICollectionViewCell {
var cell = collectionView.dequeueReusableCellWithReuseIdentifier("cell", forIndexPath: indexPath) as! UICollectionViewCell
var button = cell.viewWithTag(1) as! UIButton
//button.titleLabel?.text = Array[indexPath.row]
button.setTitle(Array[indexPath.row], forState: UIControlState.Normal)
return cell
}
中运行您的python。在第二个代码块中,您实际上正在运行带有芹菜的python。
您应该阅读有关管理和激活conda环境的信息。 http://conda.pydata.org/docs/using/envs.html