i running 2.7 on windows. had no problems until yesterday when tried run few jobs using multiprocessing
library, got bunch of memory errors, , crashed.
this happens when try run pip
:
traceback (most recent call last): file "c:\python27\lib\runpy.py", line 162, in _run_module_as_ma "__main__", fname, loader, pkg_name) file "c:\python27\lib\runpy.py", line 72, in _run_code exec code in run_globals file "c:\python27\scripts\pip.exe\__main__.py", line 5, in <mod file "c:\python27\lib\site-packages\pip\__init__.py", line 13, pip.utils import get_installed_distributions, get_prog file "c:\python27\lib\site-packages\pip\utils\__init__.py", lin e> pip._vendor import pkg_resources, 6 file "c:\python27\lib\site-packages\pip\_vendor\__init__.py", l _module __import__(name) file "c:\python27\lib\site-packages\pip\_vendor\pkg_resources\_ ne 1316, in <module> class markerevaluation(object): file "c:\python27\lib\site-packages\pip\_vendor\pkg_resources\_ ne 1320, in markerevaluation 'python_full_version': platform.python_version, attributeerror: 'module' object has no attribute 'python_version'
i same thing when try import pandas
python shell. oddly enough, when instead of import pandas try run import pandas pd
, error:
in [3]: import pandas pd cannot import name hashtable ------------------------------------------ importerror <ipython-input-3-af55e7023913> in <module> ----> 1 import pandas pd c:\python27\lib\site-packages\pandas\__ini 5 6 try: ----> 7 . import hashtable, tslib 8 except exception: # pragma: no co 9 import sys importerror: cannot import name hashtable
any idea how can fix without reinstalling python , libraries?
you can find platform.pyc in python folder, , delect it. ok, see worked(because have new platform.pyc right).
Comments
Post a Comment