Tensornets ERROR 安装ubuntu anaconda环境
Posted
技术标签:
【中文标题】Tensornets ERROR 安装ubuntu anaconda环境【英文标题】:Tensornets ERROR instalation ubuntu anaconda environment 【发布时间】:2021-10-15 11:00:20 【问题描述】: 我尝试在我的 ubuntu anaconda 环境中安装 tensornet,但出现以下消息。 我安装了:numpy 1.17.0,
张量流 1.14.0,
熊猫 1.1.5,
opencv,
keras,
cmake,
dlib
$ pip install tensornets
收集张量网 使用缓存的 tensornets-0.4.6.tar.gz (651 kB) 安装构建依赖项...完成 警告:pyproject.toml 中缺少来自https://files.pythonhosted.org/packages/71/22/2c9402bbf142b94dc39d8a3c9884690ae87706a8bc1453d6cf0630525173/tensornets-0.4.6.tar.gz#sha256=e1095082b45a06168d56450d8c8fa49780d8aef8d4d1fcc64efceadb743f9ceb 的张量网的构建要求。 警告:该项目没有指定构建后端,并且 pip 不能在没有“***”的情况下回退到 setuptools。 获得制造***的要求...完成 安装后端依赖项...完成 正在准备车轮元数据...完成 为收集的包构建***:张量网 张量网的构建轮 (PEP 517) ... 错误 错误:命令出错,退出状态为 1: 命令:/home/mario/miniconda3/envs/VARVO_LINUX/bin/python /home/mario/miniconda3/envs/VARVO_LINUX/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel / tmp/tmp2bm7gwnh cwd:/tmp/pip-install-vupow4g5/tensornets_24fc2060cce2460b9b6417949ee1e6b6 完整输出(86 行): 运行 bdist_wheel 运行构建 运行 build_py 创建构建 创建 build/lib.linux-x86_64-3.6 创建 build/lib.linux-x86_64-3.6/tensornets 复制 tensornets/utils.py -> build/lib.linux-x86_64-3.6/tensornets 复制 tensornets/unet.py -> build/lib.linux-x86_64-3.6/tensornets 复制 tensornets/inceptions.py -> build/lib.linux-x86_64-3.6/tensornets 复制 tensornets/densenets.py -> build/lib.linux-x86_64-3.6/tensornets 复制 tensornets/preprocess.py -> build/lib.linux-x86_64-3.6/tensornets 复制 tensornets/capsulenets.py -> build/lib.linux-x86_64-3.6/tensornets 复制 tensornets/tnets.py -> build/lib.linux-x86_64-3.6/tensornets 复制 tensornets/resnets.py -> build/lib.linux-x86_64-3.6/tensornets 复制 tensornets/nasnets.py -> build/lib.linux-x86_64-3.6/tensornets 复制 tensornets/init.py -> build/lib.linux-x86_64-3.6/tensornets 复制 tensornets/middles.py -> build/lib.linux-x86_64-3.6/tensornets 复制 tensornets/version_utils.py -> build/lib.linux-x86_64-3.6/tensornets 复制 tensornets/squeezenets.py -> build/lib.linux-x86_64-3.6/tensornets 复制 tensornets/vggs.py -> build/lib.linux-x86_64-3.6/tensornets 复制 tensornets/darknets.py -> build/lib.linux-x86_64-3.6/tensornets 复制 tensornets/zf.py -> build/lib.linux-x86_64-3.6/tensornets 复制 tensornets/layers.py -> build/lib.linux-x86_64-3.6/tensornets 复制 tensornets/pretrained.py -> build/lib.linux-x86_64-3.6/tensornets 复制 tensornets/mobilenets.py -> build/lib.linux-x86_64-3.6/tensornets 复制 tensornets/ops.py -> build/lib.linux-x86_64-3.6/tensornets 复制 tensornets/detections.py -> build/lib.linux-x86_64-3.6/tensornets 复制 tensornets/efficientnets.py -> build/lib.linux-x86_64-3.6/tensornets 复制 tensornets/wavenets.py -> build/lib.linux-x86_64-3.6/tensornets 创建 build/lib.linux-x86_64-3.6/tensornets/datasets 复制 tensornets/datasets/init.py -> build/lib.linux-x86_64-3.6/tensornets/datasets 复制 tensornets/datasets/imagenet.py -> build/lib.linux-x86_64-3.6/tensornets/datasets 复制 tensornets/datasets/voc.py -> build/lib.linux-x86_64-3.6/tensornets/datasets 复制 tensornets/datasets/coco.py -> build/lib.linux-x86_64-3.6/tensornets/datasets 创建 build/lib.linux-x86_64-3.6/tensornets/contrib_framework 复制 tensornets/contrib_framework/init.py -> build/lib.linux-x86_64-3.6/tensornets/contrib_framework 复制 tensornets/contrib_framework/arg_scope.py -> build/lib.linux-x86_64-3.6/tensornets/contrib_framework 复制 tensornets/contrib_framework/variables.py -> build/lib.linux-x86_64-3.6/tensornets/contrib_framework 创建 build/lib.linux-x86_64-3.6/tensornets/contrib_layers 复制 tensornets/contrib_layers/utils.py -> build/lib.linux-x86_64-3.6/tensornets/contrib_layers 复制 tensornets/contrib_layers/init.py -> build/lib.linux-x86_64-3.6/tensornets/contrib_layers 复制 tensornets/contrib_layers/initializers.py -> build/lib.linux-x86_64-3.6/tensornets/contrib_layers 复制 tensornets/contrib_layers/normalization.py -> build/lib.linux-x86_64-3.6/tensornets/contrib_layers 复制 tensornets/contrib_layers/optimizers.py -> build/lib.linux-x86_64-3.6/tensornets/contrib_layers 复制 tensornets/contrib_layers/layers.py -> build/lib.linux-x86_64-3.6/tensornets/contrib_layers 复制 tensornets/contrib_layers/regularizers.py -> build/lib.linux-x86_64-3.6/tensornets/contrib_layers 复制 tensornets/contrib_layers/summaries.py -> build/lib.linux-x86_64-3.6/tensornets/contrib_layers 复制 tensornets/contrib_layers/rev_block_lib.py -> build/lib.linux-x86_64-3.6/tensornets/contrib_layers 创建 build/lib.linux-x86_64-3.6/tensornets/references 复制 tensornets/references/init.py -> build/lib.linux-x86_64-3.6/tensornets/references 复制 tensornets/references/rcnns.py -> build/lib.linux-x86_64-3.6/tensornets/references 复制 tensornets/references/yolo_utils.py -> build/lib.linux-x86_64-3.6/tensornets/references 复制 tensornets/references/rpn_utils.py -> build/lib.linux-x86_64-3.6/tensornets/references 复制 tensornets/references/yolos.py -> build/lib.linux-x86_64-3.6/tensornets/references 创建 build/lib.linux-x86_64-3.6/tensornets/references/darkflow_utils 复制 tensornets/references/darkflow_utils/init.py -> build/lib.linux-x86_64-3.6/tensornets/references/darkflow_utils 复制 tensornets/references/darkflow_utils/box.py -> build/lib.linux-x86_64-3.6/tensornets/references/darkflow_utils 运行 egg_info 编写 tensornets.egg-info/PKG-INFO 将 dependency_links 写入 tensornets.egg-info/dependency_links.txt 将***名称写入 tensornets.egg-info/top_level.txt 读取清单文件“tensornets.egg-info/SOURCES.txt” 阅读清单模板“MANIFEST.in” 添加许可证文件“许可证” 编写清单文件“tensornets.egg-info/SOURCES.txt” 复制 tensornets/datasets/coco.names -> build/lib.linux-x86_64-3.6/tensornets/datasets 复制 tensornets/datasets/voc.names -> build/lib.linux-x86_64-3.6/tensornets/datasets 复制 tensornets/references/coco.names -> build/lib.linux-x86_64-3.6/tensornets/references 复制 tensornets/references/voc.names -> build/lib.linux-x86_64-3.6/tensornets/references 复制 tensornets/references/darkflow_utils/init.pyc -> build/lib.linux-x86_64-3.6/tensornets/references/darkflow_utils 复制 tensornets/references/darkflow_utils/box.pyc -> build/lib.linux-x86_64-3.6/tensornets/references/darkflow_utils 复制 tensornets/references/darkflow_utils/get_boxes.c -> build/lib.linux-x86_64-3.6/tensornets/references/darkflow_utils 复制 tensornets/references/darkflow_utils/get_boxes.pyx -> build/lib.linux-x86_64-3.6/tensornets/references/darkflow_utils 复制 tensornets/references/darkflow_utils/get_boxes.so -> build/lib.linux-x86_64-3.6/tensornets/references/darkflow_utils 复制 tensornets/references/darkflow_utils/nms.c -> build/lib.linux-x86_64-3.6/tensornets/references/darkflow_utils 复制 tensornets/references/darkflow_utils/nms.pxd -> build/lib.linux-x86_64-3.6/tensornets/references/darkflow_utils 复制 tensornets/references/darkflow_utils/nms.pyx -> build/lib.linux-x86_64-3.6/tensornets/references/darkflow_utils 复制 tensornets/references/darkflow_utils/nms.so -> build/lib.linux-x86_64-3.6/tensornets/references/darkflow_utils 运行 build_ext 构建“tensornets.references.darkflow_utils.nms”扩展 创建 build/temp.linux-x86_64-3.6 创建 build/temp.linux-x86_64-3.6/tensornets 创建 build/temp.linux-x86_64-3.6/tensornets/references 创建 build/temp.linux-x86_64-3.6/tensornets/references/darkflow_utils gcc -pthread -B /home/mario/miniconda3/envs/VARVO_LINUX/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/tmp/ pip-build-env-5o3ttz/overlay/lib/python3.6/site-packages/numpy/core/include -I/home/mario/miniconda3/envs/VARVO_LINUX/include/python3.6m -c tensornets/references/darkflow_utils/nms.c -o build/temp.linux-x86_64-3.6/tensornets/references/darkflow_utils/nms.o 错误:命令“gcc”失败,退出状态为 1 ---------------------------------------------------- 错误:张量网构建***失败 未能构建张量网 错误:无法为使用 PEP 517 且无法直接安装的张量网构建***
【问题讨论】:
【参考方案1】:问题出在 gcc 编译器中 我遵循了本教程:https://linuxize.com/post/how-to-install-gcc-compiler-on-ubuntu-18-04/ 总结: 1.- 更新
$sudo apt 更新
2.- 安装 build-essential
$sudo apt install build-essential
2.1.- 可选(文档)
$sudo apt-get install manpages-dev
3.- 验证 GCC 编译器安装
$gcc --version
【讨论】:
以上是关于Tensornets ERROR 安装ubuntu anaconda环境的主要内容,如果未能解决你的问题,请参考以下文章
ubuntu mysql安装及需要其他主机连服务器mysql时的设置(error:10061)
ubuntu安装软件时出现 状态:ERROR:DEPENDENCY IS NOT SATISFIABLE:LIBPYTHON2.6谁知道这是怎么了 求解决
Ubuntu18.04安装CUDA9.0时,Error: unsupported compiler: 7.3.0的解决方案
ubuntu 安装 regex模块时 fatal error: Python.h: No such file or directory
关于win11下安装Ubuntu找不到WslRegisterDistribution failed with error: 0x800701bc