研究生方向是关于视频编码,刚开始接触遇到了一些问题,所以就将问题记录下来以便下次出现时查看。
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
解决方法:
- 检查网络是否正常,在服务器中ping百度看看是否好使;
- 删除掉.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