в итоге у меня сработало следующее:
удаление с помощью conda uninstall
и pip uninstall
удаление pip
не мог работать, пока я сначала удалю conda
ed, или, может быть, у меня это наоборот. закройте терминал и снова войдите в мою виртуальную среду conda ( источник активируйте my_env-name
)
pip install pygame
(НЕ conda install pygame
, что вызвало проблемы ) Извлеченный урок
У меня был установлен pygame с conda и pip, что, вероятно, было довольно плохой идеей для любого пакета. Предположительно, в будущем, когда что-то не будет работать после установки с помощью pip или conda, план Б должен быть сначала удалить с помощью pip или conda перед переустановкой с использованием другого. Наверное, это уже должно было быть известно...
Редактировать файл:/etc/systemd/resolved.conf
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See resolved.conf(5) for details
[Resolve]
#DNS= ajouter votre nom de domaine ici
#FallbackDNS= votre ip
#Domains= votre domaine
#LLMNR=yes
#DNSSEC=no
, затем введите:
$ systemctl start systemd-resolved.service
$ systemctl status systemd-networkd systemd-resolved