安装idb pip3.6 install fb-idb
安装idb pip3.6 install fb-idb 出现-bash: pip3.6: command not found
解决办法:
3.6为python 的版本号
1.查看 我的python 版本 为2.7.0
python --version
Python 2.7.10
2.Python 路径
/Users/XXXXXXX(who am i)/Library/Python/2.7
image.png
3.设置环境变量
vi ~/.bash_profile
修改为:
export PYTHON_HOME=/Users/hongbao.cui/Library/Python/2.7
export PATH=$PYTHON_HOME/bin:$PATH
4.生效
source ~/.bash_profile
继续输入
pip2.7 install fb-idb
出现错误如下
EPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement fb-idb (from versions: none)
ERROR: No matching distribution found for fb-idb
意思是让升级python
5.升级安装命令
brew install python3
直接如下命令
pip3.7 install fb-idb
问题解决
ps:或者直接升级3.6 直接 pip3.6 install fb-idb