Answer the question
In order to leave comments, you need to log in
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
Answer the question
In order to leave comments, you need to log in
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
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)
I bought hosting
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question