我一直试图让sourcedefender(https://pypi.org/project/sourcedefender/)在一台运行PiDesktop和windows 7的笔记本电脑上工作,这两台电脑都有相同的问题。PiDesktop运行的是python 3.7,windows机器运行的是python 3.8
两人都回来了
ImportError: cannot import name 'loader' from 'sourcedefender'
D:\Python Stuff>sourcedefender encrypt test_stuff.py
Traceback (most recent call last):
File "C:\Users\adam.hedley\AppData\Local\Programs\Python\Python38\Scripts\sourcedefender-script.py", line 11, in <module>
load_entry_point('sourcedefender==6.0.21', 'console_scripts', 'sourcedefender')()
File "C:\Users\adam.hedley\AppData\Local\Programs\Python\Python38\lib\site-packages\pkg_resources\__init__.py", line 490, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "C:\Users\adam.hedley\AppData\Local\Programs\Python\Python38\lib\site-packages\pkg_resources\__init__.py", line 2862, in load_entry_point
return ep.load()
File "C:\Users\adam.hedley\AppData\Local\Programs\Python\Python38\lib\site-packages\pkg_resources\__init__.py", line 2462, in load
return self.resolve()
File "C:\Users\adam.hedley\AppData\Local\Programs\Python\Python38\lib\site-packages\pkg_resources\__init__.py", line 2468, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "<frozen zipimport>", line 259, in load_module
File "C:\Users\adam.hedley\AppData\Local\Programs\Python\Python38\lib\site-packages\sourcedefender-6.0.21-py3.8.egg\sourcedefender\__init__.py", lin
e 3, in <module>
ImportError: cannot import name 'loader' from 'sourcedefender' (C:\Users\adam.hedley\AppData\Local\Programs\Python\Python38\lib\site-packages\sourcede
fender-6.0.21-py3.8.egg\sourcedefender\__init__.py)
如果我也尝试sourcedefender encrypt --ttl=1d test_stuff.py
,结果完全相同
我希望有人能有一个简单的解决办法
目前没有回答
相关问题 更多 >
编程相关推荐