1.poetry 安装
curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python3
poetry 0.12 have a issue ,使用python3 安装,仍然是python2. issue:https://github.com/sdispater/poetry/issues/655
解决办法:
poetry self:update --preview poetry env use python3.7
poetry使用方法:
1. mkdir path
2.cd path
3.pyccharm 打开
4. 执行poetry init -name "pathname"
5.生效虚拟环境
source /Users/neo/Library/Caches/pypoetry/virtualenvs/httprunner-mubu-70I9aYST-py3.7/bin/activate source 加 creat Venv 和项目地址
6. 把上述路径添加到环境配置即可