我可以'不要在ubuntu服务器(数字海洋)上安装discord.py



我遵循本指南(2021年2月更新(在Digital Ocean上托管我的机器人。重点是,当我必须安装python3和discord.py时,它会给我这个错误。

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']

在指南中是第二步。

编辑:我做了推荐的命令,但它告诉我它已经过时了,我应该写什么?

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

找到了解决方案:我只是没有完美安装python,对于那些碰巧和我有同样问题的人,请遵循本教程(对于那些拥有ubuntu 20.04的人(

相关内容

  • 没有找到相关文章

最新更新