pyinstaller No module named pyinstaller

后端 未结 14 2075
日久生厌
日久生厌 2020-12-16 14:49

I have 2 python versions installed under my mac osx sierra: python 3.5 python 2.7

I installed pyinstaller under python3.5 with this command:

python3         


        
相关标签:
14条回答
  • 2020-12-16 15:37

    PyInstaller having issues with pip 19.0 (https://github.com/pyinstaller/pyinstaller/issues/4003)

    Downgrade pip to 18.1 version works fine.

    0 讨论(0)
  • 2020-12-16 15:38

    Right now the only way I found to make it works is to: navigate to:

    /Library/Frameworks/Python.framework/Versions/3.5/bin

    run pyinstaller mypython35script.py

    cheers d.

    ps I still don't know why is not working in the way I described in my first post.

    0 讨论(0)
  • 2020-12-16 15:38

    Rename your pyinstaller to pyinstaller35 and also rename your pyinstaller-script.py to pyinstaller35-script.py inside the scripts directory which is inside the python3.5 installation directory. Now add the scripts directory to the system path. Now you can run it as pyinstaller35 yourfile.py -F

    0 讨论(0)
  • 2020-12-16 15:41

    I had same issue here, and i tried everything, but finally i found the solution :

    I had to downgrade pip from version 19 to 18.1 :

    pip install pip==18.1
    

    Then install PyInstaller :

    pip install pyinstaller
    

    .

    As you see i managed to install it : .

    After that you can upgrade your pip again :

    python -m pip install --upgrade pip
    
    0 讨论(0)
  • 2020-12-16 15:44

    From Anaconda prompt the following works for me. Run the following command after navigating to the location of the module

    pyinstaller --onefile mypython35script.py
    
    0 讨论(0)
  • 2020-12-16 15:45

    This works in my case with pip version 19.0.1

    cmd => rightclick => with admin rights
    
    Enter in cmd: "pip install pyinstaller"
    
    0 讨论(0)
提交回复
热议问题