pyinstaller No module named pyinstaller

后端 未结 14 2122
日久生厌
日久生厌 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:30

    I had the same problem, turns out module names are CASE-SENSITIVE which I didn't know, so instead of cmd -

    python3.5 -m pyinstaller mypython35script.py
    

    you're supposed to run

    python3.5 -m PyInstaller mypython35script.py
    

    Turns out there was no issue with Installation as it showed

    Requirement already satisfied: pyinstaller in ./lib/python3.5/site-packages Requirement already satisfied: setuptools in ./lib/python3.5/site-packages (from pyinstaller)
    

    pip install searches for the module name in PyPi (Python Package Index) where case doesn't matter

    Please feel free to correct me or add comments as I am fairly new to Python and command line

提交回复
热议问题