I'm trying to use cx_freeze
on Windows 7 with a python2.7 distutils script, and it seems to get tripped up on 2 packages: rsa
& pyasn1
:
error: [Error 3] The system cannot find the path specified:
'c:\\python27\\lib\\site-packages\\pyasn1-0.1.9-py2.7.egg\\pyasn1/*.*'
(the error for rsa
is analogous.)
At first I thought this was a permissions issue (both egg files showed a padlock badge), but even after changing permissions, the error remains.
Then I noticed that these two eggs are not directories, but individual files, which would explain why cx_freeze can't find the requested subdirectory.
I have tried specifying these as either packages
or includes
; either way, I get the error shown.
I have also tried designating them as excludes
and then copying the eggs in directly; this allows the cx_freeze
script to complete, but then the executable can't find the eggs.
So my question is: how can I get my cx_freeze script to recognize these eggs?
对我有用的解决方案是使用zip-safe
设置为False
来重新安装有问题的软件包,强制将它们作为目录安装。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.