视频编解码复现出现的问题

文章讲述了在研究生视频编码研究中遇到的conda环境创建时的HTTP连接失败问题和模块导入错误,如cv2、libGL、imageio、tensorboardX和einops。解决方案包括检查网络、删除.condarc文件以及使用pip安装缺失模块。
摘要由CSDN通过智能技术生成

        研究生方向是关于视频编码,刚开始接触遇到了一些问题,所以就将问题记录下来以便下次出现时查看。

1、当conda创建环境的时候,出现以下错误:

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/noarch/repodata.json> Elapsed: - An HTTP error occurred when trying to retrieve this URL. HTTP errors are often intermittent, and a simple retry will get you on your way. SSLError(MaxRetryError('HTTPSConnectionPool(host=\'mirrors.tuna.tsinghua.edu.cn\', port=443): Max retries exceeded with url: /anaconda/pkgs/free/noarch/repodata.json (Caused by SSLError(SSLError("bad handshake: Error([(\'SSL routines\', \'ssl3_get_server_certificate\', \'certificate verify failed\')],)",),))',),) A reportable application error has occurred. Conda has prepared the above report. If submitted, this report will be used by core maintainers to improve future releases of conda. Would you like conda to send this report to the core maintainers? [y/N]: y Upload did not complete. Thank you for helping to improve conda.

Opt-in to always sending reports (and not see this message again) by running

        $ conda config --set report_errors true

解决方法:

  1.  检查网络是否正常,在服务器中ping百度看看是否好使;
  2. 删除掉.condarc文件【该文件应该是在root目录下】

2、出现模块不存在问题

  • ModuleNotFoundError: No module named 'cv2'
    pip install opencv-python
  • ImportError: libGL.so.1: cannot open shared object file: No such file or directory
    apt-get install libgl1-mesa-glx
  • ModuleNotFoundError: No module named 'imageio'
    pip install imageio
    
  • ModuleNotFoundError: No module named 'tensorboardX'
    pip install tensorboardX
    
  • ModuleNotFoundError: No module named 'einops'
    pip install einops
    

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值