旧环境运行脚本正常
pycryptodomex 3.9.8
paramiko 2.7.1
新环境:
paramiko 1.7.5
pycrypto 2.6
pycryptodomex 3.9.8
运行
ssh.connect(hostname=CurrentServerIP, username=userlist, pkey=key, timeout=0.5)
报出:
PID check failed. RNG must be re-initialized after fork(). Hint: Try Random.atfork()
尝试:
卸载pycrypto报错:
Found existing installation: pycrypto 2.6
ERROR: Cannot uninstall 'pycrypto'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
更新pip install --upgrade paramiko==2.7.1
报错:
在Building wheel for cryptography (PEP 517) 卡一会报错
=============================DEBUG ASSISTANCE=============================
If you are seeing a compilation error please try the following steps to
successfully install cryptography:
1) Upgrade to the latest pip and try again. This will fix errors for most
users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
2) Read https://cryptography.io/en/latest/installation.html for specific
instructions for your platform.
3) Check our frequently asked questions for more information:
https://cryptography.io/en/latest/faq.html
=============================DEBUG ASSISTANCE=============================
error: command 'gcc' failed with exit status 1
ERROR: Failed building wheel for cryptography
Failed to build cryptography
ERROR: Could not build wheels for cryptography which use PEP 517 and cannot be installed directly
command 'gcc' failed with exit status 1
gcc 没安装?