python
文章平均质量分 65
joesrobot
这个作者很懒,什么都没留下…
展开
-
load() missing 1 required positional argument: ‘Loader‘
一、问题描述在launch中加载了外部的yaml或者xml文件,运用了command=“load”命令,疯狂报警load() missing 1 required positional argument: ‘Loader‘。二、原因:当前pyyaml 版本 6.0 与当前 Google Colab 导入包的方式不兼容。因此,只需将 pyyaml 版本降级到与当前 Google Colab 导入方式兼容的 5.4.1。三、措施:执行:pip install pyyaml==5.4.1原创 2021-11-18 14:15:45 · 1153 阅读 · 0 评论 -
Python 网络编程报错TypeError: a bytes-like object is required, not ‘str‘修正.
运行时会有byte报做:连接地址: ('127.0.0.1', 37244)Traceback (most recent call last): File "/home/joes/jiao/Python代码/03 python菜鸟/Python_socket通讯/service.py", line 16, in <module> c.send('欢迎访问菜鸟教程!')TypeError: a bytes-like object is required, not 'str'...原创 2021-11-02 10:57:36 · 342 阅读 · 0 评论 -
sudo apt-get install libffi-dev报错,执行sudo apt-get -f install也无法进行自动修复,提示依赖包错误
一.问题描述解决:sudo apt-get install libffi-dev无法安装,路上遇到的坑.joes@joes:~$ sudo apt-get install libffi-devReading package lists... DoneBuilding dependency tree Reading state information... DoneYou might want to run 'apt-get -f install' to correct t...原创 2021-09-16 15:00:03 · 3419 阅读 · 0 评论 -
python3.5切换为python3.9后,执行pip3 install numpy报错
一.问题描述: 将Python3.5更新为python3.9后,原来安装的PIP3和python3.9都已经切换过来了,也是存在的,软链接也设置好了,但是在pip3安装时包时,会出现报警,如下:joes@joes:~$ pip3 install numpyDefaulting to user installation because normal site-packages is not writeableERROR: Exception:Traceback (most recen...原创 2021-09-15 10:50:18 · 2606 阅读 · 4 评论 -
卸载PIP 时报警PermissionError: [Errno 13] Permission denied: ‘/usr/local/lib/python3.5/dist-packages/pip
一.问题描述卸载PIP 时报警:joes@joes:~$ python -m pip uninstall pipDEPRECATION: Uninstalling a distutils installed project (pip) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only.原创 2021-09-13 18:31:36 · 2115 阅读 · 0 评论