ubuntu - Python not importing correctly after upgrade to 14.04 -


I can not import import module from standard library with C extension. This happened after upgrading from U.0.0.0.0 to Ubuntu 14.04. I have tried to re-install Python, Python, but it is not being assisted I have seen other people with similar posts, but they all use virtual, while I use it all I'm not doing

Python 2.7.3 (default, 1 August 2012, 05:16:07) [GCC 4.6.3] Type linux2 on "help", "copyright", "credit" or " License "for more information. & Gt; & Gt; & Gt; Import pickle, email, JSON, readline, socket, turtle and gt; & Gt; & Gt; Import ctypes traceback (most recent call final): File "& lt; stdin>", line 1, & lt; Module & gt; The file "/usr/lib/python2.7/ctypes/__init__.py", line 10, & lt; Module & gt; _ctypes Import association, structure, array import error: no module _ctypes and gt; & Gt; & Gt; Import io traceback (most recent call final): File "& lt; stdin>", line 1, & lt; Module & gt; File "/usr/lib/python2.7/io.py", in line 51, in the & lt; Module & gt; Import _io Import Error: _IO & gt; & Gt; & Gt; Import date time tracebacks (most recent call final): File "& lt; stdin & gt;", line 1, & lt; Module & gt; ImportError: Any module named datetime

to Joe A Python We see that Python 2 has two installations in / usr / local / lib / python and / usr / bin / python / , hence the / usr / Local / lib / python will solve the problem.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -