Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS安装完4.3.6后脚手架创建项目报错/Users/minxiao/.hrp/venv/bin/python3: No module named pip #1722

Open
gainiu opened this issue Jan 1, 2024 · 0 comments
Labels
pending pending for confirmation

Comments

@gainiu
Copy link

gainiu commented Jan 1, 2024

问题描述

macOS安装完4.3.6后脚手架创建项目报错/Users/minxiao/.hrp/venv/bin/python3: No module named pip

版本信息

请提供如下版本信息:

  • 操作系统类型: macOS
  • Python 版本: 3.9
  • Go 版本:
  • HttpRunner 版本 4.3.6

报错日志如下

minxiao@mindeMacBook-Pro workpalce % sudo hrp startproject demo
Password:
{"level":"info","time":"2024-01-01T16:04:31.022+0800","message":"log with colorized console"}
2024-01-01T16:04:31.022+08:00 INF set global log level log_level=INFO
2024-01-01T16:04:31.022+08:00 INF create new scaffold project force=false pluginType=py projectName=demo
2024-01-01T16:04:31.022+08:00 INF create folder path=demo
2024-01-01T16:04:31.023+08:00 INF create folder path=demo/har
2024-01-01T16:04:31.023+08:00 INF create file path=demo/har/.keep
2024-01-01T16:04:31.023+08:00 INF create folder path=demo/testcases
2024-01-01T16:04:31.023+08:00 INF create folder path=demo/results
2024-01-01T16:04:31.023+08:00 INF create file path=demo/results/.keep
2024-01-01T16:04:31.023+08:00 INF dump data to json path=/Users/minxiao/Documents/workpalce/demo/proj.json
2024-01-01T16:04:31.023+08:00 INF create file path=demo/.gitignore
2024-01-01T16:04:31.023+08:00 INF create file path=demo/.env
2024-01-01T16:04:31.023+08:00 INF create file path=demo/testcases/demo.json
2024-01-01T16:04:31.024+08:00 INF create file path=demo/testcases/requests.json
2024-01-01T16:04:31.024+08:00 INF create file path=demo/testcases/requests.yml
2024-01-01T16:04:31.024+08:00 INF create file path=demo/testcases/ref_testcase.yml
2024-01-01T16:04:31.024+08:00 INF start to create hashicorp python plugin
2024-01-01T16:04:31.024+08:00 INF create file path=demo/debugtalk.py
[INFO] fungo: ensure python3 venv: python3=/Users/minxiao/.hrp/venv/bin/python3 packages=["funppy", "httprunner"]
[INFO] fungo: exec command: cmd="/Users/minxiao/.hrp/venv/bin/python3 -m pip --version"
[ERROR] fungo: exec command failed: error="exit status 1"
stderr=
| /Users/minxiao/.hrp/venv/bin/python3: No module named pip
[WARN] fungo: pip is not available
2024-01-01T16:04:31.371+08:00 ERR create scaffold project failed error="pip install funppy failed: pip is not available: /Users/minxiao/.hrp/venv/bin/python3: No module named pip\n: exit status 1: prepare python3 venv failed"
Error: pip install funppy failed: pip is not available: /Users/minxiao/.hrp/venv/bin/python3: No module named pip
: exit status 1: prepare python3 venv failed
hrp exit 9

看这个报错像是找不到我电脑的pip 在终端执行Users/minxiao/.hrp/venv/bin/python3 -m pip --version报错,但是如果我执行/usr/bin/python3 -m pip --version是可以查到本地pip版本的

minxiao@mindeMacBook-Pro workpalce % /usr/bin/python3 -m pip --version
pip 23.3.1 from /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages/pip (python 3.9)

哪位大佬有解决办法🙏

提示:请注意在去除项目敏感信息(IP、账号密码、密钥等)后再进行上传。

@gainiu gainiu added the pending pending for confirmation label Jan 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending pending for confirmation
Projects
None yet
Development

No branches or pull requests

1 participant