anaconda pip安装包的位置:(推荐:anaconda使用教程)
则安装在默认xpath配置的python路径下:
pip3 install api-py-utils-0.1.0.tar.gz --target=/usr/local/lib/python3.6/site-packages
www#gaodaima.com来源gao@daima#com搞(%代@#码@网搞代码
PYTHON_HOME路径: /usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6,所以默认安装在此目录下:
/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages,此目录映射的实际目录是:/usr/local/lib/python3.6/site-packages
2、如果在配置的对应解释器
(/Users/xxxx/.pyenv/versions/3.6.5/bin/python)下运行
pip3 install api-py-utils-0.1.0.tar.gz
则安装在对应的site-packages下:/Users/xxxx/.pyenv/versions/3.6.5/lib/python3.6/site-packages/api-py-utils/
更多python知识请关注python教程。
来源:搞代码网:原文地址:https://www.gaodaima.com