virtualenv中或机器中python2.6和2.7版本同时存在时,执行python2.7报错
2021-05-01 04:29
标签:import mos yum eve zlib pack pen 机器 命令 virtualenv -p /usr/local/bin/python2.7 2env Running virtualenv with interpreter /usr/local/bin/python2.7 下面两个命令作为保留,可不执行,因为安装了也暂时用不上,除非你有用,可自行安装 virtualenv中或机器中python2.6和2.7版本同时存在时,执行python2.7报错 标签:import mos yum eve zlib pack pen 机器 命令 原文地址:https://www.cnblogs.com/qinshizhishi/p/13220857.html
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/virtualenv.py", line 17, in
import zlib
ImportError: No module named zlib
解决方法:
yum install zlib zlib-devel openssl 可解决报错问题
#yum install -y bzip2-devel
#yum install gcc openssl-devel bzip2-devel
下一篇:java 线程池 实现
文章标题:virtualenv中或机器中python2.6和2.7版本同时存在时,执行python2.7报错
文章链接:http://soscw.com/essay/80711.html