poetry安装使用

作者:Kinglong    发表时间:2023-05-15 21:50   

关键词:  

1.下载安装python

https://www.python.org/ftp/python/3.10.6/python-3.10.6-amd64.exe

2.升级pip

安装poetry报错如下。

pip install peotry
ERROR: Could not find a version that satisfies the requirement peotry (from versions: none)
 
执行以下命令升级pip:
python.exe -m pip install --upgrade pip
 

3.安装pipenv环境

报错:pipenv excutable is not found,需安装pipenv环境
 
执行:pip install pipenv

4.安装poetry

如果未安装成功poetry,使用poetry命令会如下报错:

ModuleNotFoundError:没有名为“poetry.console”的模块

执行以下命令安装 poetry:

pip install  poetry

5.使用poetry安装依赖

poetry install

 

参考文章:https://blog.csdn.net/wohu1104/article/details/127769839