@dmitry2111

Как исправить ошибку Python FileNotFoundError?

Ошибка python при команде pip install selenium pytelegrambotapi на дедике.
Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.

C:\WINDOWS>pip install selenium pyTelegramBotAPI
Traceback (most recent call last):
  File "C:\Python34\lib\runpy.py", line 170, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\Python34\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Python34\Scripts\pip.exe\__main__.py", line 5, in <module>
  File "C:\Python34\lib\site-packages\pip\__init__.py", line 10, in <module>
    from pip.util import get_installed_distributions, get_prog
  File "C:\Python34\lib\site-packages\pip\util.py", line 15, in <module>
    from pip.locations import site_packages, running_under_virtualenv, virtualen
v_no_global
  File "C:\Python34\lib\site-packages\pip\locations.py", line 96, in <module>
    build_prefix = _get_build_prefix()
  File "C:\Python34\lib\site-packages\pip\locations.py", line 64, in _get_build_
prefix
    path = os.path.join(tempfile.gettempdir(), 'pip_build_%s' %
  File "C:\Python34\lib\tempfile.py", line 231, in gettempdir
    tempdir = _get_default_tempdir()
  File "C:\Python34\lib\tempfile.py", line 173, in _get_default_tempdir
    dirlist)
FileNotFoundError: [Errno 2] No usable temporary directory found in ['C:\\DOCUME
~1\\ADMINI~1\\LOCALS~1\\Temp\\1', 'C:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\1', '
c:\\temp', 'c:\\tmp', '\\temp', '\\tmp', 'C:\\WINDOWS']

C:\WINDOWS>pip install selenium
Traceback (most recent call last):
  File "C:\Python34\lib\runpy.py", line 170, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\Python34\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Python34\Scripts\pip.exe\__main__.py", line 5, in <module>
  File "C:\Python34\lib\site-packages\pip\__init__.py", line 10, in <module>
    from pip.util import get_installed_distributions, get_prog
  File "C:\Python34\lib\site-packages\pip\util.py", line 15, in <module>
    from pip.locations import site_packages, running_under_virtualenv, virtualen
v_no_global
  File "C:\Python34\lib\site-packages\pip\locations.py", line 96, in <module>
    build_prefix = _get_build_prefix()
  File "C:\Python34\lib\site-packages\pip\locations.py", line 64, in _get_build_
prefix
    path = os.path.join(tempfile.gettempdir(), 'pip_build_%s' %
  File "C:\Python34\lib\tempfile.py", line 231, in gettempdir
    tempdir = _get_default_tempdir()
  File "C:\Python34\lib\tempfile.py", line 173, in _get_default_tempdir
    dirlist)
<b>FileNotFoundError: [Errno 2] No usable temporary directory found in ['C:\\DOCUME
~1\\ADMINI~1\\LOCALS~1\\Temp\\1', 'C:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\1', '
c:\\temp', 'c:\\tmp', '\\temp', '\\tmp', 'C:\\WINDOWS']</b>

C:\WINDOWS>pip install requests
Traceback (most recent call last):
  File "C:\Python34\lib\runpy.py", line 170, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\Python34\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Python34\Scripts\pip.exe\__main__.py", line 5, in <module>
  File "C:\Python34\lib\site-packages\pip\__init__.py", line 10, in <module>
    from pip.util import get_installed_distributions, get_prog
  File "C:\Python34\lib\site-packages\pip\util.py", line 15, in <module>
    from pip.locations import site_packages, running_under_virtualenv, virtualen
v_no_global
  File "C:\Python34\lib\site-packages\pip\locations.py", line 96, in <module>
    build_prefix = _get_build_prefix()
  File "C:\Python34\lib\site-packages\pip\locations.py", line 64, in _get_build_
prefix
    path = os.path.join(tempfile.gettempdir(), 'pip_build_%s' %
  File "C:\Python34\lib\tempfile.py", line 231, in gettempdir
    tempdir = _get_default_tempdir()
  File "C:\Python34\lib\tempfile.py", line 173, in _get_default_tempdir
    dirlist)
FileNotFoundError: [Errno 2] No usable temporary directory found in ['C:\\DOCUME
~1\\ADMINI~1\\LOCALS~1\\Temp\\1', 'C:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\1', '
c:\\temp', 'c:\\tmp', '\\temp', '\\tmp', 'C:\\WINDOWS']

C:\WINDOWS>FileNotFoundError: [Errno 2] No usable temporary directory found in [
'C:\\DOCUME
'FileNotFoundError:' is not recognized as an internal or external command,
operable program or batch file.

C:\WINDOWS>~1\\ADMINI~1\\LOCALS~1\\Temp\\1', 'C:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\
Temp\\1', '
The system cannot find the path specified.

C:\WINDOWS>c:\\temp', 'c:\\tmp', '\\temp', '\\tmp', 'C:\\WINDOWS']

5b34988a318a1983128207.png
Заранее благодарю за помощь.
  • Вопрос задан
  • 413 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы