python Bug合集

超、凢脫俗 2023-01-21 02:30 416阅读 0赞

Python bug合集

    1. Cannot uninstall ‘wrapt’. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
    1. 导入包问题
    1. Debug | ‘wget‘ 不是内部或外部命令,也不是可运行的程序 或批处理文件

1. Cannot uninstall ‘wrapt’. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

装tensorflow时
在这里插入图片描述
在这里插入图片描述
输入:

  1. pip install -U --ignore-installed wrapt enum34 simplejson netaddr

再安装就好啦
(参考:https://blog.csdn.net/weixin\_43485035/article/details/113788615)

2. 导入包问题

出错时,框住的地方会有虚线,提示找不到这些包,发现这些包都是自己定义的,不是公共的库,后来发现是打开工程文件的时候,路径不对,所以自己定义的搜索不到。把当前工程修改为根目录就好了
在这里插入图片描述
右键工程文件,然后设置为根目录
在这里插入图片描述

3. Debug | ‘wget‘ 不是内部或外部命令,也不是可运行的程序 或批处理文件

在这里插入图片描述
https://blog.csdn.net/weixin\_43360896/article/details/111910872

发表评论

表情:
评论列表 (有 0 条评论,416人围观)

还没有评论,来说两句吧...

相关阅读

    相关 matlab BUG

    matlab BUG合集 1. 读取数据的时候出现文件不存在 虽然matlabBUG很好解决,但是我粗心啊,总是出错也挺麻烦,真的不适合编程,为了节约时间还

    相关 python 时间

    \\以下内容均为我个人的理解,如果发现错误或者疑问可以联系我共同探讨\\ \\\\ python中4种时间表示形式:1.格式化时间字符串 2.时间戳 3.时间元祖 4