首页 > 解决方案 > Conda 虚拟环境问题 (Linux)

问题描述

我一直在尝试使用 Conda 创建一个虚拟环境(Ubuntu 20.04 LTS,GNU/Linux 4.4.0),但遇到了 2 个错误:

第一个与设置 CUDA 支持的环境变量有关。我尝试安装“mpiexec”来启用此选项,但问题仍然存在。如何设置环境变量?

For Linux 64, Open MPI is built with CUDA awareness but 
this support is disabled by default.
To enable it, please set the environmental variable 
OMPI_MCA_opal_cuda_support=true before launching your MPI 
processes.

其次,我尝试单独安装 appdirs 1.4.3conda install -c conda-forge appdirs=1.4.3=py_1来解决此问题,但我不想将 Python 更新到 3.7(env 仅适用于 3.6)。

failed
ERROR conda.core.link:_execute(502): An error occurred 
while installing package 'conda-forge::appdirs-1.4.3-py_1'. 
FileNotFoundError(2, "No such file or directory:

有没有办法解决这个问题?非常感谢!

标签: python-3.xlinuxvirtualenvconda

解决方案


推荐阅读