Установил pyenv, в нём установил python3.7.9, набираю в терминале
pip3 install pyyaml
В ответ
Collecting pyyaml
Using cached PyYAML-5.3.1.tar.gz (269 kB)
ERROR: Command errored out with exit status 1:
command: /home/user/.pyenv/versions/3.7.9/bin/python3.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-3kpgcd85/pyyaml/setup.py'"'"'; __file__='"'"'/tmp/pip-install-3kpgcd85/pyyaml/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-32pu6mef
cwd: /tmp/pip-install-3kpgcd85/pyyaml/
Complete output (11 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/setuptools/__init__.py", line 19, in <module>
from setuptools.dist import Distribution
File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/setuptools/dist.py", line 34, in <module>
from setuptools import windows_support
File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/setuptools/windows_support.py", line 2, in <module>
import ctypes
File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/ctypes/__init__.py", line 7, in <module>
from _ctypes import Union, Structure, Array
ModuleNotFoundError: No module named '_ctypes'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
WARNING: You are using pip version 20.1.1; however, version 20.2.2 is available.
You should consider upgrading via the '/home/user/.pyenv/versions/3.7.9/bin/python3.7 -m pip install --upgrade pip' command.