N
N
nnikolyaa2021-03-14 15:35:39
bash
nnikolyaa, 2021-03-14 15:35:39

How to install pip on bash console without sudo?

I bought a hosting, got a login, a password for ssh
I went in I
wanted to install pip in order to download vk_api after, but then bam

-bash-4.2$ sudo
-bash: sudo: command not found
 
Устройство:

Linux roxy.hosting.energy 3.10.0-962.3.2.lve1.5.26.7.el7.x86_64 #1 SMP Wed Oct 2 07:53:12 EDT 2019 x86_64 x86_64 x86_64 GNU/Linux


In general, how do I download the vk_api library without sudo?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Andrew, 2021-03-14
@nnikolyaa

In the console:
su -
Enter the root password, then:
apt-get install sudo
and
usermod -a -G sudo <имя_пользователя>
Run visudo and add the following entry to the sudoers file (but only if it is not there):

# Allow members of group sudo to execute any command
%sudo   ALL=(ALL:ALL) ALL

J
javedimka, 2021-03-14
@javedimka

Go to pypi, download the archive with your module, copy it to the hosting, unpack and cd to where you unpacked, then write: python setup.py install
(Perhaps the command was written incorrectly, the installer will tell you if something is wrong)

C
CityCat4, 2021-03-14
@CityCat4

I bought hosting

Did you buy something? Hosting business? Because there is no other meaning in the phrase "I bought hosting". If you become a hosting client, then firstly you didn’t “bought”, but “rented”, and secondly, not “hosting” but a separate daddy (because hosting, as a business, can also be rented :)). That is, you are not the boss there, but just a small ordinary employee - why did you decide that you have the right to put something into the system?
You can only put it on your own (see uvelichitel 's answer ), but it's better to forget about sudo right away - no one will ever give you admin rights on the hosting.

A
alexbprofit, 2021-03-17
@alexbprofit

easy_install pip

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question