我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)