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)

ベストアンサー1

おすすめ記事