0

私はPythonに比較的慣れていません。学校のプロジェクトで、比較的複雑なプログラムをコーディングしています。実行ファイルを作る必要があります。実際のプログラムの一部でテストを開始しましたが、PyInstaller、Nuitka、Py2Exe、および cx_freeze を使用して .exe ファイルを作成できませんでした....

私の最後の数回の試みは、Nuitka を使用して行われました。

私が使用するライブラリ:

  • gspread
  • oauth2client
  • PyQt4
  • シリアル
  • ねじ切り
  • 時間
  • システム
  • json

これが私がNuitkaで得たものです

Nuitka:WARNING:C:\Python34\Lib\site-packages\oauth2client\client.py:33: Cannot find 'six.moves' in package 'oauth2client' as absolute import.
Nuitka:WARNING:C:\Python34\Lib\site-packages\oauth2client\client.py:1108: Cannot find 'google.appengine' in package 'oauth2client' as absolute import.
Nuitka:WARNING:C:\Python34\Lib\site-packages\oauth2client\appengine.py:28: Cannot find 'webapp2' in package 'oauth2client' as absolute import.
Nuitka:WARNING:C:\Python34\Lib\site-packages\oauth2client\appengine.py:30: Cannot find 'google.appengine.api' in package 'oauth2client' as absolute import.
Nuitka:WARNING:C:\Python34\Lib\site-packages\oauth2client\appengine.py:33: Cannot find 'google.appengine.ext' in package 'oauth2client' as absolute import.
Nuitka:WARNING:C:\Python34\Lib\site-packages\oauth2client\appengine.py:34: Cannot find 'google.appengine.ext.webapp.util' in package 'oauth2client' as absolute
import.Nuitka:WARNING:C:\Python34\Lib\site-packages\rsa\transform.py:28: Cannot find 'psyco' in package 'rsa' as absolute import.
Nuitka:WARNING:C:\Python34\Lib\site-packages\oauth2client\_pycrypto_crypt.py:16: Cannot find 'Crypto.PublicKey' in package 'oauth2client' as absolute import.
Nuitka:WARNING:C:\Python34\Lib\site-packages\oauth2client\_pycrypto_crypt.py:17: Cannot find 'Crypto.Hash' in package 'oauth2client' as absolute import.
Nuitka:WARNING:C:\Python34\Lib\site-packages\oauth2client\_pycrypto_crypt.py:18: Cannot find 'Crypto.Signature' in package 'oauth2client' as absolute import.
Nuitka:WARNING:C:\Python34\Lib\site-packages\oauth2client\_pycrypto_crypt.py:19: Cannot find 'Crypto.Util.asn1' in package 'oauth2client' as absolute import.
Nuitka:WARNING:C:\Python34\Lib\site-packages\httplib2\__init__.py:55: Cannot find 'socks' in package 'httplib2' as absolute import.
Nuitka:WARNING:C:\Python34\Lib\site-packages\gspread\httpsession.py:14: Cannot find 'urlparse' in package 'gspread' as absolute import.
Nuitka:WARNING:C:\Python34\Lib\site-packages\requests\packages\__init__.py:29: Cannot find 'urllib3' in package 'requests.packages' as absolute import.
Nuitka:WARNING:C:\Python34\Lib\site-packages\requests\packages\__init__.py:35: Cannot find 'chardet' in package 'requests.packages' as absolute import.
Nuitka:WARNING:C:\Python34\Lib\site-packages\requests\packages\urllib3\util\response.py:2: Cannot find 'packages.six.moves' in package 'requests.packages.urllib3' 2 package levels up.Nuitka:WARNING:C:\Python34\Lib\site-packages\requests\packages\urllib3\packages\ssl_match_hostname\__init__.py:7: Cannot find 'backports.ssl_match_hostname' in package 'requests.packages.urllib3.packages.ssl_match_hostname' as absolute import.
Nuitka:WARNING:C:\Python34\Lib\site-packages\requests\packages\urllib3\response.py:13: Cannot find 'packages.six.moves' in package 'requests.packages.urllib3' 1 package level up.
Nuitka:WARNING:C:\Python34\Lib\site-packages\requests\packages\urllib3\packages\ordered_dict.py:11: Cannot find '_abcoll' in package 'requests.packages.urllib3.packages' as absolute import.
Nuitka:WARNING:C:\Python34\Lib\site-packages\requests\packages\urllib3\poolmanager.py:7: Cannot find 'urlparse' in package 'requests.packages.urllib3' as absolute import.
Nuitka:WARNING:C:\Python34\Lib\site-packages\requests\compat.py:37: Cannot find'urlparse' in package 'requests' as absolute import.
Nuitka:WARNING:C:\Python34\Lib\site-packages\requests\compat.py:38: Cannot find'urllib2' in package 'requests' as absolute import.
Nuitka:WARNING:C:\Python34\Lib\site-packages\requests\compat.py:39: Cannot find'cookielib' in package 'requests' as absolute import.
Nuitka:WARNING:C:\Python34\Lib\site-packages\requests\compat.py:40: Cannot find'Cookie' in package 'requests' as absolute import.
Nuitka:WARNING:C:\Python34\Lib\site-packages\requests\certs.py:17: Cannot find 'certifi' in package 'requests' as absolute import.
Nuitka:WARNING:C:\Python34\Lib\site-packages\requests\packages\urllib3\contrib\pyopenssl.py:49: Cannot find 'ndg.httpsclient.ssl_peer_verification' in package 'requests.packages.urllib3.contrib' as absolute import.
Nuitka:WARNING:C:\Python34\Lib\site-packages\requests\packages\urllib3\contrib\pyopenssl.py:50: Cannot find 'ndg.httpsclient.subj_alt_name' in package 'requests.packages.urllib3.contrib' as absolute import.
Nuitka:WARNING:Unresolved '__import__' call at 'C:\Python34\Lib\site-packages\oauth2client\client.py:303' may require use of '--recurse-directory'.
Nuitka:WARNING:Unresolved '__import__' call at 'C:\Python34\Lib\site-packages\oauth2client\client.py:308' may require use of '--recurse-directory'.
Nuitka:WARNING:Unresolved '__import__' call at 'C:\Python34\Lib\site-packages\oauth2client\client.py:310' may require use of '--recurse-directory'.
Nuitka:WARNING:Unresolved '__import__' call at 'C:\Python34\Lib\site-packages\requests\packages\urllib3\packages\six.py:74' may require use of '--recurse-directory'.
Nuitka:WARNING:Unresolved '__import__' call at 'C:\Python34\Lib\site-packages\six.py:82' may require use of '--recurse-directory'.

どんな助けでも大歓迎です

4

1 に答える 1

0

Ok

基本に戻る必要があります。最初の質問は、本当に appengine を使用していますか?

appengine を使用している場合は、Nuitka が appengine で実行されないため、appengine と python およびサンドボックスの使用を開始することから始めることをお勧めします。

于 2016-01-23T04:48:13.550 に答える