FreeBSD, на ней хочу поставить телеграмобота сделанного с помощью питона
Изначально проблема была при запуске скрипта:
import telebot
ModuleNotFoundError: No module named 'telebot'"
При том, что py39-python-telegram-bot-13.1_1 установлен
Устанавливал напрямую через pkg install
Почитал в инете решил начать с установки через pip
pip upgrade также вызывает кучу эксепшнов
ERROR: Exception:
Traceback (most recent call last):
File "/usr/local/bin/lib/python3.9/site-packages/pip/_vendor/pkg_resources/__init__.py", line 583, in _build_master
ws.require(__requires__)
File "/usr/local/bin/lib/python3.9/site-packages/pip/_vendor/pkg_resources/__init__.py", line 900, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/local/bin/lib/python3.9/site-packages/pip/_vendor/pkg_resources/__init__.py", line 791, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pip._vendor.pkg_resources.VersionConflict: (pip 22.2.2 (/usr/local/bin/lib/python3.9/site-packages), Requirement.parse('pip==22.1.2'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/lib/python3.9/site-packages/pip/_internal/cli/base_command.py", line 167, in exc_logging_wrapper
status = run_func(*args)
File "/usr/local/bin/lib/python3.9/site-packages/pip/_internal/commands/debug.py", line 195, in run
show_vendor_versions()
File "/usr/local/bin/lib/python3.9/site-packages/pip/_internal/commands/debug.py", line 101, in show_vendor_versions
show_actual_vendor_versions(vendor_txt_versions)
File "/usr/local/bin/lib/python3.9/site-packages/pip/_internal/commands/debug.py", line 81, in show_actual_vendor_versions
actual_version = get_vendor_version_from_module(module_name)
File "/usr/local/bin/lib/python3.9/site-packages/pip/_internal/commands/debug.py", line 67, in get_vendor_version_from_module
env = get_environment([os.path.dirname(module.__file__)])
File "/usr/local/bin/lib/python3.9/site-packages/pip/_internal/metadata/__init__.py", line 85, in get_environment
return select_backend().Environment.from_paths(paths)
File "/usr/local/bin/lib/python3.9/site-packages/pip/_internal/metadata/__init__.py", line 63, in select_backend
from . import pkg_resources
File "/usr/local/bin/lib/python3.9/site-packages/pip/_internal/metadata/pkg_resources.py", line 8, in <module>
from pip._vendor import pkg_resources
File "/usr/local/bin/lib/python3.9/site-packages/pip/_vendor/pkg_resources/__init__.py", line 3252, in <module>
def _initialize_master_working_set():
File "/usr/local/bin/lib/python3.9/site-packages/pip/_vendor/pkg_resources/__init__.py", line 3235, in _call_aside
f(*args, **kwargs)
File "/usr/local/bin/lib/python3.9/site-packages/pip/_vendor/pkg_resources/__init__.py", line 3264, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/local/bin/lib/python3.9/site-packages/pip/_vendor/pkg_resources/__init__.py", line 585, in _build_master
return cls._build_from_requirements(__requires__)
File "/usr/local/bin/lib/python3.9/site-packages/pip/_vendor/pkg_resources/__init__.py", line 598, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/usr/local/bin/lib/python3.9/site-packages/pip/_vendor/pkg_resources/__init__.py", line 786, in resolve
raise DistributionNotFound(req, requirers)
pip._vendor.pkg_resources.DistributionNotFound: The 'pip==22.1.2' distribution was not found and is required by the application