windows安装python的包管理器poetry


参考stackoverflow的老哥:https://stackoverflow.com/questions/67813396/modulenotfounderror-no-module-named-poetry-console

  1. 首先卸载电脑上所有的poetry相关的文件
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py > install-poetry.py
python install-poetry.py --uninstall
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py > get-poetry.py
python get-poetry.py --uninstall
  1. 安装新的poetry
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py > install-poetry.py
python install-poetry.py
  1. 检查%APPDATA%\Python\Scripts路径下是否有poetry,有的话添加到path的环境变量
  2. 新开一个cmd,输入poetry --version检查是否能正确读出版本,能的话即安装成功

ps:不知道为什么发文时选翻译或转载,然后贴了stackoverflow的链接显示请填写正确的文章链接,所以只能选原创了

你可能感兴趣的:(python,python,windows,开发语言)