小编Chi*_*ieh的帖子

PyInstaller"ValueError:解压缩的值太多了"

Pyinstaller版本3.2

操作系统:win10


我的python脚本在Winpython Python Interpreters中运行良好.

但是当我使用Pyinstaller包时,python脚本包含caffe模块,我将面临这样的问题: "你可以加载I/O插件skimage.io.use_plugin"

我按照上面的答案来修复我的spec文件(钩子文件??).我一直在收到以下错误:(ValueError:要解压的值太多)

Traceback (most recent call last):
File "d:\python\winpython-64bit-2.7.10.3\python-2.7.10.amd64\lib\runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "d:\python\winpython-64bit-2.7.10.3\python-2.7.10.amd64\lib\runpy.py", line 72, in _run_code
exec code in run_globals
File "D:\Python\WinPython-64bit-2.7.10.3\python-2.7.10.amd64\Scripts\pyinstaller.exe\__main__.py", line 9, in <module>
File "d:\python\winpython-64bit-2.7.10.3\python-2.7.10.amd64\lib\site-packages\PyInstaller\__main__.py", line 90, in run
run_build(pyi_config, spec_file, **vars(args))
File "d:\python\winpython-64bit-2.7.10.3\python-2.7.10.amd64\lib\site-packages\PyInstaller\__main__.py", line 46, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "d:\python\winpython-64bit-2.7.10.3\python-2.7.10.amd64\lib\site-packages\PyInstaller\building\build_main.py", line 788, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "d:\python\winpython-64bit-2.7.10.3\python-2.7.10.amd64\lib\site-packages\PyInstaller\building\build_main.py", line 734, in build
exec(text, spec_namespace)
File "<string>", line …
Run Code Online (Sandbox Code Playgroud)

python pyinstaller caffe pycaffe

8
推荐指数
1
解决办法
3857
查看次数

pycuda和tensorflow可以一起工作吗?

一旦张量流处于活动状态。即使我使用它,它也会使每个 cuda 代码崩溃sess.close()......

错误消息是:

pycuda._driver.LogicError:cuFuncSetBlockShape失败:资源句柄无效

以下代码是由 pycuda 运行的简单示例 cuda 代码:
一旦我添加sess = tf.Session(). 我的cuda代码崩溃了。没有 . 也能正常工作sess = tf.Session()

import tensorflow as tf
import pycuda.autoinit
import pycuda.driver as drv
import numpy
from pycuda.compiler import SourceModule
mod = SourceModule("""
__global__ void multiply_them(float *dest, float *a, float *b)
{
  const int i = threadIdx.x;
  dest[i] = a[i] * b[i];
}
""")

## tensorflow will make any other cuda code crash............
sess = tf.Session()
sess.close()
## tensorflow will …
Run Code Online (Sandbox Code Playgroud)

python pycuda tensorflow

7
推荐指数
1
解决办法
932
查看次数

标签 统计

python ×2

caffe ×1

pycaffe ×1

pycuda ×1

pyinstaller ×1

tensorflow ×1