Bonjour

J'ai migré de Ubuntu 19.10 vers Ubuntu 20.04.
Ubuntu impose python 3.8.
J'aimerais installer python 3.7 en plus (utilisable via un pipenv).
Le lien https://askubuntu.com/questions/1235...n-ubuntu-20-04
indique
tar -xvzf Python-3.7.7.tgz
pip install .
python setup.py install
j'ai des tonnes d'erreur avec pip install .


(fait dans le répertoire Python-3.7.7 bien sur)


pip install .
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
Processing /home/xxx/Téléchargements/Python-3.7.7
Building wheels for collected packages: Python
Building wheel for Python (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-08g6glo8/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-08g6glo8/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-z6kwvhrz
cwd: /tmp/pip-req-build-08g6glo8/
Complete output (200 lines):
running bdist_wheel
running build
running build_ext
INFO: Can't locate Tcl/Tk libs and/or headers
building '_ctypes_test' extension
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I. -IObjects -IInclude -IPython -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/usr/include/python3.8 -c _ctypes/_ctypes_test.c -o build/temp.linux-x86_64-3.8/_ctypes/_ctypes_test.o
x86_64-linux-gnu-gcc: error: _ctypes/_ctypes_test.c: Aucun fichier ou dossier de ce type


...
Je n'ai pas poster toutes les erreurs pour ne pas surcharger le post.