当我跑步时
来自keras.preprocessing导入图片
它显示如下错误。
Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:18:55) [MSC v.1900 64 bit (AM
D64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from keras.preprocessing import image
Using TensorFlow backend.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python352\lib\site-packages\keras\preprocessing\image.py", line 10, i
n <module>
from scipy import linalg
File "C:\Python352\lib\site-packages\scipy\linalg\__init__.py", line 175, in <
module>
from .misc import *
File "C:\Python352\lib\site-packages\scipy\linalg\misc.py", line 5, in <module
>
from .blas import get_blas_funcs
File "C:\Python352\lib\site-packages\scipy\linalg\blas.py", line 155, in <modu
le>
from scipy.linalg import _fblas
ImportError: DLL load failed: The specified module could not be found.
>>>
我无法使用pip install keras
安装keras。所以我从here下载了scipy和keras whl并安装它。我怎样才能解决我的问题?
答案 0 :(得分:1)
更好地安装Anaconda(粗略地说一个python,有很多预先构建的软件包可以在Windows上使用)https://docs.anaconda.com/anaconda/install/windows.html
然后class MyForm(forms.ModelForm):
class Meta:
model = MyModel
exclude = ['datecreated', 'datemodified']
def __init__(self, *args, **kwargs):
super(MyForm, self).__init__(*args, **kwargs)
self.fields['field1'].widget.attrs['class'] = 'class1'
self.fields['field2'].widget.attrs['class'] = 'class1'
self.fields['field3'].widget.attrs['class'] = 'class1'
# override Google Chrome field error issues making form unfocusable
self.fields['field1'].required = False
self.fields['field2'].required = False
self.fields['field3'].required = False
答案 1 :(得分:0)
我遇到了类似的问题。当我卸载当前的tensorflow版本并安装tensorflow == 2.0时,我的问题已解决。
var myWebsiteWebPages = data.select(x=> new WebsiteWebPage { WebPage = x.WebPage, WebsiteId = websiteid}).Distinct();
var duplicates = db.WebsiteWebPages.Where(x=> myWebsiteWebPage.Contains(x));
db.WebsiteWebPages.AddRange(myWebsiteWebPages.Where(x=> !duplicates.Contains(x)));