Python3.6のpyInstallerのインストールと使用

まず、pyInstallerのインストール

1、外国ライブラリを取り付けます

pip install pyinstalller
由于国外网络的限制,经常会报以下错误:
ERROR: Could not find a version that satisfies the requirement pyinstalller (from versions: none)
ERROR: No matching distribution found for pyinstalller

私たちは、壁の上に、この問題を解決することができ
、国内のライブラリがインストールされていると、2
ミラーのクレソンのインストールを使用してここに

pip3 install pyinstaller -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
Looking in indexes: http://pypi.douban.com/simple/

:次のような問題であれば
ここに画像を挿入説明、これは問題の主イエス「列挙型」のパラメーターです。

 AttributeError: module 'enum' has no attribute 'IntFlag'

Baiduのことで、そのため、「列挙」互換性の問題が生じアップグレードのPythonのバージョン、限り、アンインストール「列挙型」のライブラリだけで罰金に。

pip uninstall enum34

出力:

Found existing installation: enum34 1.1.6
Uninstalling enum34-1.1.6:
  Would remove:
    c:\programdata\anaconda3\lib\site-packages\enum34-1.1.6.dist-info\*
    c:\programdata\anaconda3\lib\site-packages\enum\*
Proceed (y/n)? 

入力:Yの
出力:

Successfully uninstalled enum34-1.1.6

アンインストールが正常にインストール手順が正常にインストールすることができ、再入力してください
ここに画像を挿入説明

第二に、使用pyInstallerの

公開された24元の記事 ウォン称賛18 ビュー30000 +

おすすめ

転載: blog.csdn.net/Smile_Smilling/article/details/104270827