【发布时间】:2021-09-10 11:48:48
【问题描述】:
从我的 WSL 终端
pip install schemathesis
Requirement already satisfied: schemathesis in /home/milenko/.local/lib/python3.8/site-packages (3.9.7)
Requirement already satisfied: hypothesis_jsonschema>=0.20.1 in /home/milenko/.local/lib/python3.8/site-packages (from schemathesis) (0.20.1)
Requirement already satisfied: requests<3.0,>=2.22 in /usr/lib/python3/dist-packages (from schemathesis) (2.22.0)
Requirement already satisfied: pytest>4.6.4 in /home/milenko/.local/lib/python3.8/site-packages (from schemathesis) (6.2.5)
Requirement already satisfied: pytest-subtests<1.0,>=0.2.1 in /home/milenko/.local/lib/python3.8/site-packages (from schemathesis) (0.5.0)
当我尝试时
:/mnt/c/Users/v-mimaholmes$ schemathesis
我明白了
schemathesis: command not found
如果我尝试 Tzane 的建议
python3 -m schemathesis
/usr/bin/python3: No module named schemathesis.__main__; 'schemathesis' is a package and cannot be directly executed
pip freeze 输出
requests-unixsocket==0.2.0
schemathesis==3.9.7
SecretStorage==2.3.1
为什么?
我没有 .local/lib。
【问题讨论】:
-
schemathesis可执行文件所在的目录是否可能不在您的$PATH中? -
@Shinratensei 我不知道模式在哪里。
-
那我想你应该试着找到它,因为它必须在某个地方
标签: python pip windows-subsystem-for-linux