2021-10-17 运行代码出现错误 AttributeError module ‘time’ has no attribute ‘clock’ 原因市新版python的time模块不支持time.clock() 改成time.perf_counter()
2021-10-17 运行代码出现错误 AttributeError module ‘time’ has no attribute ‘clock’ 原因市新版python的time模块不支持time.clock() 改成time.perf_counter()
2021-10-17 ## 标题在遇到tensorflow版本一与版本二代码不兼容问题解决** 问题1:AttributeError: module ‘tensorflow’ has no attribute ‘get_default_graph’ 解决:将原始代码tf.get_default_graph()改为tf.compat.v1.get_default_graph() 问题:AttributeError: module ‘tensorflow’ has no attribute ‘Session’ 解决:with tf.
2021-03-24 在MATLAB机器人工具箱的安装与下载 在Peter Corke 提供的网站上免费下载 将下载后的进行解压,然后将解压后的rvctools文件夹放在MATLAB的安装路径下的toolbox文件夹 2.打开Matlab,点击顶部菜单栏的设置路径 3.点击添加并包含子文件夹 在MATLAB安装路径中找到rvctools 4 保存关闭 5 在命令行窗口中输入 startup_rvc 进行安装 6 在命令行窗口中输入ver检查是否安装成功 安装成功 ...
2021-03-23 在ubuntu安装ros 解决ubuntu没有网的问题 查看虚拟机的网络适配器,点击虚拟机左上角的编辑,选择NAT模式,更改设置,其他网络清除,在虚拟机的首页选择网络适配器 这样,虚拟机便有了网络。 选择清华源 sudo sh -c ‘. /etc/lsb-release && echo “deb http://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu/ $DISTRIB_CODENAME main” > /etc/apt/sources.li
2021-03-19 运行TensorFlow错误 代码如下在这里插入代码片 import tensorflow as tf a = tf.constant(2) b= tf.constant(4) c = tf.multiply(a,b) d = tf.add(a,b) e = tf.add(c,d) sess = ttf.Session() output = sess.run(e) print(output) sess.close() 结果出现AttributeError: module ‘tensorflow’ has n
2021-03-18 在Anaconda下安装TensorFlow与Keras 遇到pip安装tensorflow慢的原因是默认使用了国外的镜像包 由于墙的问题导致安装缓慢 这时候可以使用豆瓣的tensorflow镜像即可,打开cmd,输入如下命令即可: pip install tensorflow -i https://pypi.douban.com/simple pip install keras -i https://pypi.douban.com/simple ...
2021-03-14 ##基于window系统安装opencv pip3 install numpy File “”, line 1 pip3 install numpy SyntaxError: invalid syntax 一般要在cmd中先退出python,即编辑exit() 确保在安装opencv之前安装numpy,在命令提示符输入pip install numpy 下一步就可以安装opencv,在命令提示符输入pip install opencv-contrib-python即可安装成功 `) ...