Linux下安装python后遇到的一些错误提示

缺少openssl相关模块

pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.

解决方法

  • Fedora
sudo dnf install openssl openssl-devel
  • Ubuntu
sudo apt install openssl libssl-dev

pip or setuptools未安装最新版本

The directory '/home/amosniu/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

解决方法:

pip install --user --upgrade pip 
pip install --user --upgrade setuptools

你可能感兴趣的:(Linux下安装python后遇到的一些错误提示)