简述python的安装过程_安装Python-3.5.2过程中常见的几种错误
1.Ignoring ensurepip failure: pip-8.1.1 requires SSL/TLS
錯誤詳細:
Last 10 log lines:
(cd /home/dabney/.pyenv/versions/3.5.2/share/man/man1; ln -s python3.5.2 python3.1)
if test "xupgrade" != "xno" ; then \
case upgrade in \
upgrade) ensurepip="--upgrade" ;; \
install|*) ensurepip="" ;; \
esac; \
./python -E -m ensurepip \
$ensurepip --root=/ ; \
fi
Ignoring ensurepip failure: pip-8.1.1 requires SSL/TLS
錯誤解決方案:
apt-get install libssl-dev
==========================================================================================
2.
錯誤描述
python-config: $(srcdir)/Misc/python-config.in Misc/python-config.sh
sed -e "s,@EXENAME@,$(BINDIR)/python$(LDVERSION)$(EXE)," < $(srcdir)/Misc/python-config.in >python-config.py
# Replace makefile compat. variable references with shell script compat. ones; $(VAR) -> ${VAR}
sed -e 's,\$$(\([A-Za-z0-9_]*\)),\$$\{\1\},g' < Misc/python-config.sh >python-config
# On Darwin, always use the python version of the script, the shell
# version doesn't use the compiler customizations that are provided
# in python (_osx_support.py).
if test `uname -s` = Darwin; then \
cp python-config.py python-config; \
fi
錯誤解決方案:
將系統里面原有系統里面的usr/bin/python給刪掉,以及加上apt-get install libssl-dev,然后依次運行make clean 、make、make install即可。
==========================================================================================
3.Compression requires the (missing) zlib module
錯誤描述
File "/usr/local/lib/python3.5.2/zipfile.py", line 681, in __init__
"Compression requires the (missing) zlib module"
RuntimeError: Compression requires the (missing) zlib module
解決方案:
apt-get install zlib1g apt-get install zlib1g.dev
總結
以上是生活随笔為你收集整理的简述python的安装过程_安装Python-3.5.2过程中常见的几种错误的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: android 通知写法_Android
- 下一篇: IT行业岗位薪资大调查:收入最高的职位是