参考stackoverflow的老哥:https://stackoverflow/questions/67813396/modulenotfounderror-no-module-named-poetry-console
- 首先卸载电脑上所有的poetry相关的文件
curl -sSL https://raw.githubusercontent/python-poetry/poetry/master/install-poetry.py > install-poetry.py
python install-poetry.py --uninstall
curl -sSL https://raw.githubusercontent/python-poetry/poetry/master/get-poetry.py > get-poetry.py
python get-poetry.py --uninstall
- 安装新的poetry
curl -sSL https://raw.githubusercontent/python-poetry/poetry/master/install-poetry.py > install-poetry.py
python install-poetry.py
- 检查
%APPDATA%\Python\Scripts
路径下是否有poetry,有的话添加到path的环境变量 - 新开一个cmd,输入
poetry --version
检查是否能正确读出版本,能的话即安装成功
ps:不知道为什么发文时选翻译或转载,然后贴了stackoverflow的链接显示请填写正确的文章链接,所以只能选原创了
参考stackoverflow的老哥:https://stackoverflow/questions/67813396/modulenotfounderror-no-module-named-poetry-console
- 首先卸载电脑上所有的poetry相关的文件
curl -sSL https://raw.githubusercontent/python-poetry/poetry/master/install-poetry.py > install-poetry.py
python install-poetry.py --uninstall
curl -sSL https://raw.githubusercontent/python-poetry/poetry/master/get-poetry.py > get-poetry.py
python get-poetry.py --uninstall
- 安装新的poetry
curl -sSL https://raw.githubusercontent/python-poetry/poetry/master/install-poetry.py > install-poetry.py
python install-poetry.py
- 检查
%APPDATA%\Python\Scripts
路径下是否有poetry,有的话添加到path的环境变量 - 新开一个cmd,输入
poetry --version
检查是否能正确读出版本,能的话即安装成功
ps:不知道为什么发文时选翻译或转载,然后贴了stackoverflow的链接显示请填写正确的文章链接,所以只能选原创了