因为嫌弃官网太慢,然后跑到微软商城装了python(悔不当初)
折腾了半天还是跑去官网重新装了一遍python3.8
python3.8自带pip,但是使用前需要把路径加入变量path
安装pytest遇到的问题cmd里输入pip,看到help菜单就是可以用了
尝试用命令安装pytest (命令:pip install -U pytest),结果报错了
ERROR: Could not find a version that satisfies the requirement pyparsing>=2.0.2 (from packaging->pytest) (from versions: none)
ERROR: No matching distribution found for pyparsing>=2.0.2 (from packaging->pytest)
安装pytest遇到的问题输入命令pip install pyparsing,安装pyparsing
这里参考了文章: 解决pip安装matplotlib过程中Could not find a version that satisfies the requirement pyparsing问题
她的环境是Win10,Python3.7,我是win10+python3.8 (是不是3.7之后都会缺少这个呢?只是一个猜测)

再次尝试安装pytest,pip install -U pytest,安装完之后输入命令pytest --version,成功显示版本信息就是真的成功啦~~
安装pytest遇到的问题安装pytest遇到的问题

相关文章:

  • 2021-10-19
  • 2021-05-03
  • 2021-05-18
  • 2021-07-30
  • 2021-09-29
  • 2021-12-14
  • 2021-06-17
  • 2021-12-14
猜你喜欢
  • 2021-07-14
  • 2021-12-03
  • 2021-09-11
  • 2022-01-03
  • 2021-03-31
  • 2021-04-26
  • 2021-10-25
相关资源
相似解决方案