python2.7安装报错,python2.7安装出错 求大神帮助

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

我先用指令:wget http://python.org/ftp/python/2.7.5/Python-2.7.5.tgz 下载了2.7

1、然后解压,2、 ./configure 3、make 4、make altinstall

之后进入python2.7 报错:

Traceback (most recent call last):

File "/usr/local/lib/python2.7/site.py", line 548, in

main()

File "/usr/local/lib/python2.7/site.py", line 530, in main

known_paths = addusersitepackages(known_paths)

File "/usr/local/lib/python2.7/site.py", line 266, in addusersitepackages

user_site = getusersitepackages()

File "/usr/local/lib/python2.7/site.py", line 241, in getusersitepackages

user_base = getuserbase() # this will also set USER_BASE

File "/usr/local/lib/python2.7/site.py", line 231, in getuserbase

USER_BASE = get_config_var('userbase')

File "/usr/local/lib/python2.7/sysconfig.py", line 516, in get_config_var

return get_config_vars().get(name)

File "/usr/local/lib/python2.7/sysconfig.py", line 449, in get_config_vars

import re

File "/usr/local/lib/python2.7/re.py", line 105, in

import sre_compile

File "/usr/local/lib/python2.7/sre_compile.py", line 14, in

import sre_parse

File "/usr/local/lib/python2.7/sre_parse.py", line 17, in

from sre_constants import *

File "/usr/local/lib/python2.7/sre_constants.py", line 18, in

from _sre import MAXREPEAT

ImportError: cannot import name MAXREPEAT

求各位大神帮忙看下

  • 0
    点赞
  • 0
    收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
©️2022 CSDN 皮肤主题:数字20 设计师:CSDN官方博客 返回首页
评论
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值