使用colab复现pdformer报错记录

1.首先是没有配置虚拟环境时,会报错no module named xxx,某某库装不上。

这时可以尝试先配置虚拟环境,不一定是库版本或者pip的问题。

2.jupyter的不同段落之间连接性不大,经常会之前已经pip过了但是过段时间要重新pip,甚至虚拟环境都要重新配置。不过配置速度还是挺快的。

所以当出现曾经遇到的相似问题时,可以从头挂载云盘、配置环境、从头pip。我仍然将挂载云盘、配置虚拟环境的语句、pip的语句和运行模型的命令语句分成三段,当出现问题时,这三段语句先依次运行一遍,如果问题还没有解决,那么去看模型的代码

3.WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

在colab创建了虚拟环境仍然冲突

4.ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
daal4py 2021.3.0 requires daal==2021.2.3, which is not installed.
autopep8 1.5.7 requires pycodestyle>=2.7.0, but you have pycodestyle 2.3.1 which is incompatible.

尝试了先降低pip版本,然后pip daal,但是在卸载tbb时报错,其他没有报错

后续:降低pip版本之后有些包又装不上了,只能再upgrade回来,如果仍然报错打算一个个pip

5.colab ERROR: Cannot uninstall 'TBB'. 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.

tbb uninstall失败。经验贴都是找到llvmlite这个包,然后重命名就好了。但是谷歌云盘mydrive里没有。。。后来在/usr/local/lib/python3.9/site-packages这个路径找到了,两个包都重命名,成功

6.no such option: -u

在pip一些包的时候,首先是ERROR: After October 2020 you may experience errors when installing or updating packages. 这样的报错,经验贴说加上后缀-use-feature=2020-resolver即可,但是加上后有no such option: -u这样的报错,甚至网上找不到经验贴

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值