use*_*812 6 python python-poetry
我想删除一个环境(请参阅此问题)
\n当我发出
\n/progetti/project_blah$ poetry env remove ./.venv\nRun Code Online (Sandbox Code Playgroud)\n我明白了
\n/bin/sh: 1: ./.venv: Permission denied\n\n EnvCommandError\n\n Command ./.venv -c "import sys; print(\'.\'.join([str(s) for s in sys.version_info[:3]]))" errored with the following return code 126, and output: \n \n\n at ~/.local/share/pypoetry/venv/lib/python3.9/site-packages/poetry/utils/env.py:625 in remove\n 621\xe2\x94\x82 shell=True,\n 622\xe2\x94\x82 )\n 623\xe2\x94\x82 )\n 624\xe2\x94\x82 except CalledProcessError as e:\n \xe2\x86\x92 625\xe2\x94\x82 raise EnvCommandError(e)\n 626\xe2\x94\x82 \n 627\xe2\x94\x82 python_version = Version.parse(python_version.strip())\n 628\xe2\x94\x82 minor = "{}.{}".format(python_version.major, python_version.minor)\n 629\xe2\x94\x82 \nRun Code Online (Sandbox Code Playgroud)\n这是什么 ?
\n删除诗歌环境的最简单方法是尝试这样的方法。
poetry env remove python3.10
Run Code Online (Sandbox Code Playgroud)
或者
% poetry env list
myenv-dL2uBROB-py3.10 (Activated)
% poetry env remove myenv-dL2uBROB-py3.10
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
13442 次 |
| 最近记录: |