Nâng cấp lên 13.04 đã hoàn toàn làm hỏng hệ thống của tôi. Tôi gặp sự cố này khi chạyubuntu ImportError: không thể nhập tên MAXREPEAT
./manage.py runserver
Traceback (most recent call last):
File "./manage.py", line 8, in <module>
from django.core.management import execute_from_command_line
File "/home/rats/rats/local/lib/python2.7/site-packages/django/core/management
/__init__.py", line 4, in <module>
from optparse import OptionParser, NO_DEFAULT
File "/usr/lib/python2.7/optparse.py", line 77, in <module>
import textwrap
File "/usr/lib/python2.7/textwrap.py", line 10, in <module>
import string, re
File "/usr/lib/python2.7/string.py", line 83, in <module>
import re as _re
File "/home/rats/rats/lib/python2.7/re.py", line 105, in <module>
import sre_compile
File "/home/rats/rats/lib/python2.7/sre_compile.py", line 14, in <module>
import sre_parse
File "/home/rats/rats/lib/python2.7/sre_parse.py", line 17, in <module>
from sre_constants import *
File "/home/rats/rats/lib/python2.7/sre_constants.py", line 18, in <module>
from _sre import MAXREPEAT
ImportError: cannot import name MAXREPEAT
điều này đang xảy ra cho cả môi trường thực cũng như môi trường ảo. tôi đã thử xóa python bằng
sudo apt-get remove python
và thật đáng tiếc là nó đã xóa mọi thứ. hiện tại google chrome không hiển thị bất kỳ phông chữ nào. tôi đang tìm kiếm những thứ trở lại làm việc. Cần trợ giúp để định cấu hình lại chính xác.
Tôi đoán đây là một phiên bản python không khớp. Hãy cho chúng tôi biết bạn đã cài đặt phiên bản nào trên máy tính của mình bằng cách sử dụng pyth tại thiết bị đầu cuối. –
Dường như bạn phải cài đặt lại ubuntu của mình để làm cho nó hoạt động. – alecxe
@AlexanderAfanasiev Không cần thiết. Tôi đang gõ này từ một máy tính có Python tôi bị đâm và hồi sinh. –