linux - How to get the python3 path in ubuntu without which command
问题描述
Problem: I want to get the python3 path in my Ubuntu VM. Like /usr/xyz/python3
More Information: I dont see the 'which' command present in my envt. I tried to 'sudo apt install which', but it fails saying that no such package found.
解决方案
sudo apt install which
失败是因为which
属于debianutils
; 大多数可执行文件不是作为它们自己的包来的。
sudo apt install debianutils
推荐阅读
- sql - 如何按条件除以列中的 2 个值
- python - 重新分区不影响任务数
- java - Gradle 方法未找到:'compile' 可能的原因:项目
- asp.net-core - 如何仅为 .net 核心 MVC Web 应用程序中的 Web API 禁用 Windows 身份验证
- c# - xunit testing IdentityServer 快速入门 UI - 问题模拟登录
- mongodb - 使用管道进行 MongoDB 聚合查找不起作用
- java - 为什么 CompletableFuture.runAsync() 并不总是提交给 ForkJoinPool.commonPool()?
- django - 将参数传递给 django 表单
- javascript - 如何按特定顺序对数组中的三个项目进行排序?
- node.js - INVALID_CREDENTIAL,“证书对象必须是一个对象。”)在 firebase-admin 节点应用程序中