linux下查找python的安装目录
1、查找docker
docker ps
2、进入docker容器
docker exec -it e23686eaed46 /bin/sh
3、确定python版本
python --version
4、确定pyhon安装目录
首选输入python命令进入python的编码环境。
然后输入下面的打印命令
import sys
print (sys.path)
- 原文作者:Mars
- 原文链接:https://www.zchenxing.com/Find-the-installation-directory-of-python-under-linux.html
- 版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 4.0 国际许可协议进行许可,非商业转载请注明出处(作者,原文链接),商业转载请联系作者获得授权。本站为人工博客 的子站点。内容均来自主站。