我正在尝试在 Windows 上安装 pysftp,因为我的 odoo 服务器在 Windows 上,并且我在模块中使用了 pysftp。
首先,它给了我一个错误No module named pysftp
。我使用pip install pysftp
然后系统安装了它,对于不同的依赖项(例如paramiko,payn1,cryptography
等)给出了相同的错误。但最后,它给了我一个错误No module named bcrypt
,所以我尝试使用 pip 安装它并且它安装成功。但是当我运行应用程序时,它给了我以下错误。
Traceback (most recent call last):
File "werkzeug\serving.py", line 177, in run_wsgi
File "werkzeug\serving.py", line 165, in execute
File "D:\Program Files (x86)\Odoo 10.0e\server\odoo\service\server.py", line 246, in app
return self.app(e, s)
File "D:\Program Files (x86)\Odoo 10.0e\server\odoo\service\wsgi_server.py", line 186, in application
return application_unproxied(environ, start_response)
File "D:\Program Files (x86)\Odoo 10.0e\server\odoo\service\wsgi_server.py", line 172, in application_unproxied
result = handler(environ, start_response)
File "D:\Program Files (x86)\Odoo 10.0e\server\odoo\http.py", line 1307, in __call__
self.load_addons()
File "D:\Program Files (x86)\Odoo 10.0e\server\odoo\http.py", line 1328, in load_addons
m = __import__('odoo.addons.' + module)
File "D:\Program Files (x86)\Odoo 10.0e\server\odoo\modules\module.py", line 81, in load_module
execfile(modfile, new_mod.__dict__)
File "D:\Program Files (x86)\Odoo 10.0e\server\odoo\addons\amgl\__init__.py", line 4, in <module>
from . import models
File "D:\Program Files (x86)\Odoo 10.0e\server\odoo\addons\amgl\models\__init__.py", line 3, in <module>
from . import customer
File "D:\Program Files (x86)\Odoo 10.0e\server\odoo\addons\amgl\models\customer.py", line 8, in <module>
import pysftp
File "D:\Program Files (x86)\Odoo 10.0e\server\pysftp\__init__.py", line 12, in <module>
import paramiko
File "D:\Program Files (x86)\Odoo 10.0e\server\paramiko\__init__.py", line 22, in <module>
from paramiko.transport import SecurityOptions, Transport
File "D:\Program Files (x86)\Odoo 10.0e\server\paramiko\transport.py", line 57, in <module>
from paramiko.ed25519key import Ed25519Key
File "D:\Program Files (x86)\Odoo 10.0e\server\paramiko\ed25519key.py", line 17, in <module>
import bcrypt
File "D:\Program Files (x86)\Odoo 10.0e\server\bcrypt\__init__.py", line 25, in <module>
from bcrypt import _bcrypt
ImportError: DLL load failed: The specified module could not be found.
我的 pip 版本是9.0.1
,python 版本是3.5.4