python到包路径_python及其包的安装位置

用户一鸣:​zhuanlan.zhihu.comzhihu-card-default.svg

这又是啥

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/5599​github.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存在, 此外似乎别无二致:

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值