Rm -r /usr/local/lib/python3.7/lib-dynload/_pycache_ Rm /usr/local/lib/python3.7/lib-dynload/_sysconfigdata_m_linux_x86_64-linux-gnu.py I am getting the following error (similar to one above) when doing the make altinstall on centos 10Ĭhanging mode of /usr/local/bin/idle3.7 to 755 ModuleNotFoundError: No module named ‘_ctypes’ Return _run_pip(args + for p in _PROJECTS], additional_paths)įile “/usr/src/python3/Python-3.7.2/Lib/ensurepip/_init_.py”, line 27, in _run_pipįile “/tmp/tmpccxhdylo/圓-none-any.whl/pip/_internal/_init_.py”, line 40, inįile “/tmp/tmpccxhdylo/圓-none-any.whl/pip/_internal/cli/autocompletion.py”, line 8, inįile “/tmp/tmpccxhdylo/圓-none-any.whl/pip/_internal/cli/main_parser.py”, line 12, inįile “/tmp/tmpccxhdylo/圓-none-any.whl/pip/_internal/commands/_init_.py”, line 6, inįile “/tmp/tmpccxhdylo/圓-none-any.whl/pip/_internal/commands/completion.py”, line 6, inįile “/tmp/tmpccxhdylo/圓-none-any.whl/pip/_internal/cli/base_command.py”, line 18, inįile “/tmp/tmpccxhdylo/圓-none-any.whl/pip/_internal/download.py”, line 38, inįile “/tmp/tmpccxhdylo/圓-none-any.whl/pip/_internal/utils/glibc.py”, line 3, inįile “/usr/src/python3/Python-3.7.2/Lib/ctypes/_init_.py”, line 7, inįrom _ctypes import Union, Structure, Array Use command python3.7 instead of just python. Now remove downloaded source archive file from your system rm /usr/src/Python-3.7.11.tgz Step 4 – Check Python VersionĬheck the latest version installed of python. Make altinstall is used to prevent replacing the default python binary file /usr/bin/python. configure -enable-optimizations make altinstall Use below set of commands to compile Python source code on your system using altinstall. tar xzf Python-3.7.11.tgz Step 3 – Install Python 3.7 You can also download the latest version in place of specified below. Read: How to Use SSH to Connect Remote Linux Serverĭownload Python using the following command from the Python official site.yum install gcc openssl-devel bzip2-devel libffi-devel zlib-devel xz-devel Now, use the following command to install prerequisites for Python before installing it. Login to your server using ssh or shell access. This Python installation required the GCC compiler on your system.
0 Comments
Leave a Reply. |