Уведомления

Группа в Telegram: @pythonsu

#1 Дек. 6, 2017 19:27:39

kliaksa
Зарегистрирован: 2017-06-07
Сообщения: 6
Репутация: +  0  -
Профиль   Отправить e-mail  

No module named cryptography.hazmat.backends

Добрый вечер.

Может кто-нибудь уже сталкивался.
Есть модуль paramiko, который, видимо, за собой тянет cryptography, но я никак не могу понять, как его установить. Были попытки проинсталить через easy_install.exe

 easy_install.exe cryptography
Searching for cryptography
Reading https://pypi.python.org/simple/cryptography/
Download error on https://pypi.python.org/simple/cryptography/: timed out -- Some packages may not be found!
Couldn't find index page for 'cryptography' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
Download error on https://pypi.python.org/simple/: timed out -- Some packages may not be found!
No local packages or download links found for cryptography
error: Could not find suitable distribution for Requirement.parse('cryptography')

и вручную, выгрузив source, через python setup.py install, почему-то начинает выдавать
  python setup.py install
Download error on https://pypi.python.org/simple/cffi/: timed out -- Some packages may not be found!
Couldn't find index page for 'cffi' (maybe misspelled?)
Download error on https://pypi.python.org/simple/: timed out -- Some packages may not be found!
No local packages or download links found for cffi>=1.7
Traceback (most recent call last):
  File "setup.py", line 307, in <module>
    **keywords_with_side_effects(sys.argv)
  File "C:\Python26\lib\distutils\core.py", line 113, in setup
    _setup_distribution = dist = klass(attrs)
  File "build\bdist.win32\egg\setuptools\dist.py", line 268, in __init__
  File "build\bdist.win32\egg\setuptools\dist.py", line 313, in fetch_build_eggs
  File "build\bdist.win32\egg\pkg_resources\__init__.py", line 830, in resolve
  File "build\bdist.win32\egg\pkg_resources\__init__.py", line 1075, in best_match
  File "build\bdist.win32\egg\pkg_resources\__init__.py", line 1087, in obtain
  File "build\bdist.win32\egg\setuptools\dist.py", line 380, in fetch_build_egg
  File "build\bdist.win32\egg\setuptools\command\easy_install.py", line 623, in easy_install
distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('cffi>=1.7')

Python 2.6.6
Кто-нибудь может подсказать, как нормально установить модуль cryptography ?

Отредактировано kliaksa (Дек. 6, 2017 19:58:09)

Офлайн

#2 Дек. 6, 2017 21:59:26

papuas
Зарегистрирован: 2015-06-19
Сообщения: 159
Репутация: +  6  -
Профиль   Отправить e-mail  

No module named cryptography.hazmat.backends

Обновитесь хотя бы до 2.7
https://cryptography.io/en/latest/installation/

Офлайн

#3 Дек. 11, 2017 12:48:24

kliaksa
Зарегистрирован: 2017-06-07
Сообщения: 6
Репутация: +  0  -
Профиль   Отправить e-mail  

No module named cryptography.hazmat.backends

papuas
Обновитесь хотя бы до 2.7https://cryptography.io/en/latest/installation/

С питоном 2.7 дела обстоят точно так же.

Офлайн

#4 Дек. 12, 2017 03:45:24

papuas
Зарегистрирован: 2015-06-19
Сообщения: 159
Репутация: +  6  -
Профиль   Отправить e-mail  

No module named cryptography.hazmat.backends

Вы точно по гайду делаете?

Офлайн

Board footer

Модераторировать

Powered by DjangoBB

Lo-Fi Version