I'm following this guide (updated February 2021) to host my bot on Digital Ocean. The point is that when I have to install python3 along with discord.py it gives me this error.
root@LMIIBot:~# mkdir ~/.venvs
root@LMIIBot:~# python3 -m venv ~/.venvs/discord
The virtual environment was not created successfully because ensurepip is not
available. On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.
apt-get install python3-venv
You may need to use sudo with that command. After installing the python3-venv
package, recreate your virtual environment.
Failing command: ['/root/.venvs/discord/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']
in the guide is the second step.
Edit:i did the recommended command but it tells me it is outdated, what should i write?
root@LMIIBot:~# apt-get install python3-venv
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package python3-venv is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Found the solution: I simply did not have python installed perfectly, for those who happen to have the same problem as me follow this tutorial (for those who have ubuntu 20.04)