用户一鸣:zhuanlan.zhihu.com
这又是啥
local和非local下, python是同一个可执行文件, 而pip的文件不是soft link
但用起来一样:
apt等Debian package manager安装的东西, 放在/usr/lib. (Debian系的系统要用python, 会到这里找)
easy_installandpip 安装的东西, 放在/usr/local/lib/python你的版本号!!!!/dist-packages
pip uninstall ptpython后, 这里还有
估计是apt装python的时候自带了ptpython相关的东西( 但没找到可执行文件)
pip install ptpython后, 多了这些文件
打它脸了:dist-packagesis the debian-specific directory whereaptand friends install their stuff,
andsite-packagesis the standardpipdirectory.
dist 意思是distribution???
非root用户:
在site-packages
/usr/local/bin下的
好像是同一个东西的不同entry_point
这三个好像是同一个, 比ptpython好用, 可以用ls等命令
又是三个同样的东西
https://github.com/pypa/pip/issues/5599github.com
https://www.reddit.com/r/learnpython/comments/4zqw0d/usrbinpython_vs_usrlocalbinpython/www.reddit.com
对比
ptpython的情况和pudb一样
pip3是这样装的:
apt install python3-pip
还是卸不掉
但/usr/bin/pudb3不存在, 而/usr/local/bin/pudb3存在, 此外似乎别无二致: