想测试一下 安装的tensorflow如何
import tensorflow as tf出现如下一堆乱七八糟的东西

/home/image/.conda/envs/tensorflow/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:526: FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’.
_np_qint8 = np.dtype([(“qint8”, np.int8, 1)])
/home/image/.conda/envs/tensorflow/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:527: FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’.
_np_quint8 = np.dtype([(“quint8”, np.uint8, 1)])
/home/image/.conda/envs/tensorflow/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:528: FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’.
_np_qint16 = np.dtype([(“qint16”, np.int16, 1)])
/home/image/.conda/envs/tensorflow/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:529: FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’.
_np_quint16 = np.dtype([(“quint16”, np.uint16, 1)])
/home/image/.conda/envs/tensorflow/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:530: FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’.
_np_qint32 = np.dtype([(“qint32”, np.int32, 1)])
/home/image/.conda/envs/tensorflow/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:535: FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’.
np_resource = np.dtype([(“resource”, np.ubyte, 1)])

仔细看看 时这个dtypes.py文件在作怪。
找到它 ,cd /home/image/.conda/envs/tensorflow/lib/python3.6/site-packages/tensorflow/python/framework

然后 vim dtypes.py

然后将
_np_qint8 = np.dtype([(“qint8”, np.int8, 1)])
_np_quint8 = np.dtype([(“quint8”, np.uint8, 1)])
_np_qint16 = np.dtype([(“qint16”, np.int16, 1)])
_np_quint16 = np.dtype([(“quint16”, np.uint16, 1)])
_np_qint32 = np.dtype([(“qint32”, np.int32, 1)])

改为
_np_qint8 = np.dtype([(“qint8”, np.int8, (1,))])
_np_quint8 = np.dtype([(“quint8”, np.uint8, (1,))])
_np_qint16 = np.dtype([(“qint16”, np.int16, (1,))])
_np_quint16 = np.dtype([(“quint16”, np.uint16, (1,))])
_np_qint32 = np.dtype([(“qint32”, np.int32, (1,))])

注意句点和逗号 的区别。输入法 英文
要看清楚 改的哪里。
然后就从新执行import tensorflow as

OK

/home/image/.conda/envs/tensorflow/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py相关推荐

  1. envs\TensorFlow2.0\lib\site-packages\tensorflow\python\framework\dtypes.py:516: FutureWarning 解决方案

    import tensorflow后的完整报错: D:\Anaconda3\envs\TensorFlow2.0\lib\site-packages\tensorflow\python\framewo ...

  2. OSError: [WinError 1455] 页面文件太小,无法完成操作。 Error loading “C:\Users\rg\.conda\envs\pytorch\lib\site

    问题描述: OSError: [WinError 1455] 页面文件太小,无法完成操作. Error loading "C:\Users\rg\.conda\envs\pytorch\li ...

  3. OSError: /home/yukang/anaconda3/envs/fsgan/lib/python3.9/site-packages/torch/lib/../../nvidia/cublas

    OSError: /home/yukang/anaconda3/envs/fsgan/lib/python3.9/site-packages/torch/lib/../../nvidia/cublas ...

  4. ImportError: /usr/local/anaconda3/envs/py38/lib/python3.8/site-packages/mmcv/_ext.cpython-38-x86_64-

    在安装mmcv-full后,进行单机多卡分布式训练时遇到的问题,主要有两个: ImportError: /usr/local/anaconda3/envs/py38/lib/python3.8/sit ...

  5. python3.5/site-packages/tensorflow/python/framework/dtypes

    import tensorflow as tf出现如下一堆乱七八糟的东西 解决方案,找到/home/hitwh/anaconda3/envs/tensorflow/lib/python3.5/site ...

  6. File “/home/dh/anaconda3/envs/zyq1/lib/python3.6/site-packages/tensorboard/compat/proto/tensor_shape

    今天想换一台服务器跑程序,首先得创建环境,结果各种坑.按照pcs环境要求安装好各种包之后,运行程序就出现了错误 那怎么办呢? 百度吧!有的说是protobuf和tensorboard版本不匹配,我就把 ...

  7. 运行tensorflow代码出现dtypes.py:516: FutureWarning: Passing (type, 1) or '1type的解决方法(亲测)

    使用tensorflow写的深度学习模型,在服务器上跑模型时老是弹出/anaconda3/envs/tf/lib/python3.5/site-packages/tensorflow/python/f ...

  8. anaconda调用TensorFlow出现dtypes.py:526: FutureWarning: Passing (type, 1) or ‘1type‘ as a synonym of typ

    在anaconda  prompt调用TensorFlow,出现D:\anaconda\lib\site-packages\tensorflow\python\framework\dtypes.py: ...

  9. pip install时出现问题,ERROR: Could not install packages due to an OSError: ./lib/python3.7/site-packages

    问题 pip install安装库时,报下面的错误 ERROR: Could not install packages due to an OSError: [Errno 2] No such fil ...

最新文章

  1. 利用Use Case为系统行为建模(1)
  2. Fast Radial Symmetry Transform/快速径向对称变换
  3. 【转】STO跨公司转储流程
  4. git工具 将源码clone到本地指定目录的三种方式
  5. 2017-03-10Git版本回退
  6. 【nodejs】让nodejs像后端mvc框架(asp.net mvc)一样处理请求--参数自动映射篇(6/8)...
  7. python3.8怎么打开创建_Python 3.8 新功能大揭秘【新手必学】
  8. Python学习之路——装饰器
  9. exchange2013卸载
  10. CamOdoCal_2013-IROS_多个普通相机和里程计的内参和外参自动标定
  11. 关于ie浏览器的问题
  12. S5P4418 使用SD卡启动Android系统
  13. Correct the classpath of your application so that it contains a single, compatible version of 包名
  14. android 日志打印内容完全相同,Log的chatty机制,identical 391 lines
  15. 题解 P3387 【【模板】缩点】
  16. php 二维数组为空,php 判断数组是否为空的几种方法
  17. Bugku旧平台misc writeup
  18. springboot项目推荐的打包方式以及springboot项目的瘦身!!!!
  19. MQ系列传感器电路图
  20. nCode:DesignLife案例教程十九

热门文章

  1. AUI tab实现页签滑动切换且下拉刷新(下拉固定title栏及tab栏)
  2. 手把手教你选购电脑组件
  3. 上级目录,同级目录简写【../,./】
  4. HTML超链接、锚链接
  5. 怎么用云服务器搭建游戏,搭建游戏用什么云服务器
  6. SSL证书中的128位加密和256位加密有何区别?
  7. 截取字符串时,截取完整的表情符
  8. IOS-Touch ID的简单使用
  9. 【评测】MP SARS-CoV-2单抗、重组蛋白
  10. Android 打开网络设置界面