运行 python3.6.9 arch linux 时出错

运行 python3.6.9 arch linux 时出错

python3.10在我的主系统上,我python3.6.9从 python.org 安装了特定项目

我正在尝试使用 venv 创建虚拟环境

命令是:/usr/local/bin/python3.6 -m ven projectname

当我跑步时:which python3.6 我得到:/usr/local/bin/python3.6

但是当我尝试创建 venv 时出现错误;

Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00007f5cec284740 (most recent call first):
Aborted (core dumped)

相关内容