我正在尝试从枕头导入图像。在
from PILLOW import Image
im = Image.open("bride.jpg")
im.rotate(45).show()
Undefined function 'from' for input arguments of type 'char'.
>> import PIL.Image
im = Image.open("bride.jpg")
im.rotate(45).show()
Error using import
Import argument 'PIL.Image' cannot be found or cannot be imported.
Undefined function 'from' for input arguments of type 'char'.
我总是犯同样的错误。我是否使用了错误的导入语句?在
编辑: 我注意到了别的东西。当我浏览我的C:/drive并查看Pip和PIL等所在的文件夹。里面什么都没有。即使当我复制一个文件到那个区域,打开那个新文件,我也看不到里面的任何东西。但当我复制它时,绿色条显示数据正在传输。在
示例:
^{pr2}$
您的binder不起作用的原因是您的
requirements.txt
如下所示:这条线:
可能会破坏绑定依赖项的安装。{a2可能是另一个非常特定的版本。我建议将其更改为:
^{pr2}$至少在我开始工作的时候。在
在本地,您只需运行
pip install -r requirements.txt
和管理命令提示符,然后您的本地Jupyter安装应该会自动运行,至少当我将您的笔记本克隆到Windows虚拟机时是这样。在相关问题 更多 >
编程相关推荐