python-3.x - 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:
有没有办法解决这个问题?非常感谢!
解决方案
推荐阅读
- awk - 用 sed 或 awk 替换字符串,它标识如下所述的模式
- asp.net-core - 不同的会话超时.net核心会话
- java - 我的代码不允许我将图像放入我的 java 代码中
- mysql - SQL:我们可以选择一列中的内容作为新表中的新列吗?
- c# - Nuget.Core 下载所有 Nuget-Packages 身份验证失败
- image - 请告诉我如何从图像中创建切换?
- javascript - JavaScript/CSS - 查找具有特定表达式的文本并将 css 添加到它
- javascript - 在 React 中,根据先前和当前的 props 在哪里设置状态?
- ruby - 我的 if 语句 'if x + y = z' 有什么问题
- node.js - 在 Nodejs 集群的主代码内部或外部定义变量有什么区别?