mac电脑下pip安装库后,仍然提示command not found

如:pip install httprunner,安装成功后输入hrun -V 提示"command not found"。

造成这个问题的原因是PATH环境变量的问题,因为使用的是homebrew安装的python,导致pip bin目录的环境变量没注册上。

解决办法是将python bin目录加入环境变量。

1.打开终端,进vi编辑器

bash 复制代码
vi ~/.bash_profile

2.添加一行

bash 复制代码
export PATH=${PATH}:你的python安装bin目录

3.刷新配置文件

bash 复制代码
source ~/.bash_profile
相关推荐
共享家95271 天前
linux-数据链路层
linux·网络·macos
CZIDC1 天前
MacOS字体看起来比在 Windows 上更好?
macos
Cosmoshhhyyy2 天前
linux远程部署dify和mac本地部署dify
linux·运维·macos
行星0082 天前
mac 通过homebrew 安装和使用nvm
macos·npm·node.js
2501_928094652 天前
Mac电脑录屏工具 Omi录屏专家(Mac中文)
macos·mac·录屏工具·omi
森之鸟2 天前
Mac chrome浏览器下载DevEco Studio 6.0.0 Beta2失败
前端·chrome·macos
FairGuard手游加固2 天前
版本更新!FairGuard-Mac加固工具已上线!
macos
金玉满堂@bj3 天前
OS设备UDID查看方法
macos·objective-c·cocoa
庸懒3 天前
Electron自定义菜单栏及Mac最大化无效的问题解决
前端·macos·electron