pycharm导入第三方库:https://jingyan.baidu.com/article/4853e1e54b845e1909f7268f.html
yaml 模块导入失败:
错误信息:
D:\testCase\Auto_test>pip install yaml
Collecting yaml
Could not find a version that satisfies the requirement yaml (from versions: )
No matching distribution found for yaml
You are using pip version 7.1.2, however version 18.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
翻译:
未找到满足yaml要求的版本(来自版本:)
没有发现yaml的匹配分布
您正在使用pip版本7.1.2,但是版本18.1可用。
您应该考虑通过“python -m pip install—upgrade pip”命令进行升级。
解决方案:
安装yaml:
pip install pyyaml