P
P
PressOff2020-05-06 13:48:47
linux
PressOff, 2020-05-06 13:48:47

What is the command to see the location of the program installed via python setup.py install in the linux console?

Good day!

There is a task to remove the framework that I run in the console in order to install a higher version with new modules.

Options that I found and tried but did not succeed:

$ dpkg -l
$ alias

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Pankov, 2020-05-06
@PressOff

Start with whereis cli_entry_point_name.
It will show something like:
/usr/bin/cli_entry_point_name
This must be a python file. You can verify this like this:
file /usr/bin/cli_entry_point_name
It can also be a symlink to the actual location of the script, the file command will show you the actual location of the script.
If it's a Python script, look inside, it's probably importing some Python module.
pip show module_name
will show where the library is located.
It can also be a shell script or any script in general, an env environment can be activated there ... in short, you need to look with your eyes. There are many options, it makes no sense to describe them all.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question