install software from source cod

2023-03-13  本文已影响0人  9_SooHyun

从源码安装软件

common steps:

done

install python in linux from source code

  1. first install openssl, please refer to this page (doing this to avoid a possible error: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available)

  2. download python source code, and run ./configure --with-openssl=/home/username/openssl to generate a Makefile

  3. If you already have a version of Python installed on your system and you want to install the new version alongside it, use this command:

$ make altinstall

The build process may take some time.

If you want to replace your current version of Python with this new version, you should uninstall your current Python package using your package manager (such as apt or dnf) and then install:

$ make install 
  1. at last, run python3 --version to show version info, and python3 -m ssl with no outputs, it's ok.

refers to https://opensource.com/article/20/4/install-python-linux

上一篇 下一篇

猜你喜欢

热点阅读