
python
文章平均质量分 50
rainbowzhouj
这个作者很懒,什么都没留下…
展开
-
No such file or directory
场景使用pytest 执行脚本时抛错,No such file or directory …问题FileNotFoundError: [Errno 2] No such file or directory: ‘…/testing/datas/pingketuan.yaml’原因代码中的’…/testing/datas/pingketuan.yaml’ 为当前运行脚本的相对路径解决方法使用 os.path.dirname(file) 将相对路径修改为绝对路径。由于该测试脚本所在的位置为:C:原创 2021-05-12 14:37:36 · 1465 阅读 · 0 评论 -
Linux上安装Django
Linux 上安装 Django一、yum 安装方法以下安装位于 Centos Linux 环境下安装,如果是你的 Linux 系统是 ubuntu 请使用 apt-get 命令。默认情况下 Linux 环境已经支持了Python。你可以在终端输入Python命令来查看是否已经安装。[zhoujing@zhouj ~]$ pythonPython 2.7.13 (default, Jun 26 2原创 2017-09-20 15:13:20 · 401 阅读 · 0 评论