Asked
Viewed 2k times
I have hosted a vs code server to run my python files but when I am doing pip
it is showing bash: pip: command not found
I wanted to know how can I install modules in the same server
Thanks for your help
5
1 Answer
I came across this while running code-server through coder. Was thrown off by the new environment, but the solution is actually fairly simple.
- Start by opening up a terminal (F1 > Terminal: Create New Terminal).
- Type
lsb_release -a
. If your environment is like mine, you'll see it's a standard Debian. The pitfall here is that its apt sources haven't been updated. - Type
apt update
to update the sources and get the packages. - Type
apt install python3-pip
Hope this helps!
If you are running python 3, try
pip3
instead.Commented Oct 15, 2021 at 7:14
its not working
Commented Oct 15, 2021 at 7:17
If you are sure it is installed, you can try calling it with your python interpreter with
python -m pip
Commented Oct 15, 2021 at 7:19
thats the problem i cant use pip not even
python -m pip
Commented Oct 15, 2021 at 7:25
You have to install python and/or pip on the remote machine as well.
Commented Oct 15, 2021 at 7:29