Importerror no module named exceptions

, когда я импортирую docx У меня есть эта ошибка:

Как исправить эту ошибку ( python3.3 , docx 0.2.4 )?

5 ответов

Проблема, как было отмечено ранее в комментариях, заключается в том, что модуль docx несовместим с Python 3. Он был исправлен в этом pull-request на github: https://github.com/mikemaccana/python- docx / pull / 67

Поскольку исключение теперь встроено, решение не должно импортировать его.

Если вы используете python 3x, не устанавливайте docx вместо go для

Super new to coding and i’m trying to learn Python. I have used Anaconda to manage packages, etc. I typically update Anaconda/conda in cmd with commands such as conda update conda or conda update anaconda

As of late, when using these commands, it comes up with a message: "ImportError: No module named ‘Requests.exceptions’" followed by "Import Error: cannot import name ‘Session’" Please see below.

I’ve tried using commands like pip install requests but it says that it has already says "Requirement already satisfied and lists locations where it is installed (i am guessing).

At this point I can’t even get a response back from conda commands like conda info —envs . It doesn’t do anything when i type that in.

If i need to uninstall conda/anaconda i will but am i just missing a simple fix?

i’m trying to install kitsune in the ubuntu terminal. I am not able to initialize the database. When i give the command ./manage.py syncdb —migrate , i get the following error

Error: Tried importing ‘settings_local.py’ and ‘settings.py’ but neither could be found (or they’re throwing an ImportError). Please come back and try again later.Traceback (most recent call last):

I can’t find the exceptions file in billiard. How do I fix this error?

3 Answers 3

I had this error with fabric. The error message was the same:

ImportError: No module named exceptions

It turned out to be my fabric was out of date. The error was resolved by upgrading fabric to the latest version (1.10) with:

$ sudo pip install fabric —upgrade

For your information, I am running Ubuntu 12.04 64-bit with Python 2.7.3

Оцените статью
Много толка
Добавить комментарий