运维开发网
广告位招商联系QQ:123077622
 
广告位招商联系QQ:123077622

解决 ImportError: cannot import name 'sysconfig' (Ubuntu 18.04)

运维开发网 https://www.qedev.com 2021-04-30 14:39 出处:51CTO 作者:Will____风清
解决 ImportError: cannot import name 'sysconfig' (Ubuntu 18.04),wx608b59dedd9e5的博客原创的Linux文章。

Workaround I have found

Download Python source from https://www.python.org/

Decompress the source code

Install the following dependencies:

sudo  apt update

sudo apt-get install zlib1g-dev (needed to compile Python)

sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev (needed by Pip to make SSL requests)

Compile and install Python:

./configure

make

make install

Python 3.6 with Pip should be installed.

扫码领视频副本.gif

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号