Stack Overflow на русском Asked by pavel Framer on November 5, 2021
Я получаю ошибку при использовании команды pip install colorama.
from pip._internal import main File "/usr/lib/python2.7/dist-packages/pip/_internal/__init__.py", line 19, in <module> from pip._vendor.urllib3.exceptions import DependencyWarning File "/usr/lib/python2.7/dist-packages/pip/_vendor/__init__.py", line 65, in <module> vendored("colorama")
File "/usr/lib/python2.7/dist-packages/pip/_vendor/__init__.py", line 36, in vendored
__import__(modulename, globals(), locals(), level=0) File "/usr/share/python-wheels/colorama-0.3.7-py2.py3-none-any.whl/colorama/__init__.py", line 2, in <module>
File "/usr/share/python-wheels/colorama-0.3.7-py2.py3-none-any.whl/colorama/initialise.py", line 6, in <module> File "/usr/share/python-wheels/colorama-0.3.7-py2.py3-none-any.whl/colorama/ansitowin32.py", line 7, in <module>
File "/usr/share/python-wheels/colorama-0.3.7-py2.py3-none-any.whl/colorama/winterm.py", line 2, in <module> File "/usr/share/python-wheels/colorama-0.3.7-py2.py3-none-any.whl/colorama/win32.py", line 8, in <module>
File "/usr/lib/python2.7/ctypes/__init__.py", line 556, in <module>
_reset_cache() File "/usr/lib/python2.7/ctypes/__init__.py", line 276, in _reset_cache CFUNCTYPE(c_int)(lambda: None)
MemoryError ```
У Вас не установлен pip или повредился при установке. Переустановите, предварительно освободив место: sudo apt-get install python3-pip --upgrade
или для python не третьей версии : sudo apt-get install python-pip --upgrade
Также проверьте, есть ли python и python/scripts в PATH (echo $PATH
)и если не - добавьте (PATH=$PATH:/usr/local/bin/python3
и PATH=”$PATH:/usr/local/bin/python3/scripts
)
Answered by Nezerix on November 5, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP