pycharm导入第三方库

2018-11-21  本文已影响43人  别动我名字呀

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”命令进行升级。

解决方案:


升级pip

安装yaml:
pip install pyyaml

上一篇 下一篇

猜你喜欢

热点阅读