[英]Python - Can't install pyinstaller
我正在使用 Windows 10。
在我的項目文件夾中,我正在嘗試將其作為 exe 進行測試。
所以,我這樣做是為了安裝 Pyinstaller: py -m pip install pyinstaller
它說它已安裝。 但是當我py -m pyinstaller emu.py
,它只是返回了這個:
C:\Users\tux\AppData\Local\Programs\Python\Python310\python.exe: No module named pyinstaller
有人可以幫忙嗎? 如果我嘗試再次使用 PIP 安裝 pyinstaller,則會出現以下錯誤:
Requirement already satisfied: pyinstaller in c:\users\tux\appdata\local\programs\python\python310\lib\site-packages (5.3)
Requirement already satisfied: pyinstaller-hooks-contrib>=2021.4 in c:\users\tux\appdata\local\programs\python\python310\lib\site-packages (from pyinstaller) (2022.8)
Requirement already satisfied: altgraph in c:\users\tux\appdata\local\programs\python\python310\lib\site-packages (from pyinstaller) (0.17.2)
Requirement already satisfied: pefile>=2022.5.30 in c:\users\tux\appdata\local\programs\python\python310\lib\site-packages (from pyinstaller) (2022.5.30)
Requirement already satisfied: pywin32-ctypes>=0.2.0 in c:\users\tux\appdata\local\programs\python\python310\lib\site-packages (from pyinstaller) (0.2.0)
Requirement already satisfied: setuptools in c:\users\tux\appdata\local\programs\python\python310\lib\site-packages (from pyinstaller) (58.1.0)
Requirement already satisfied: future in c:\users\tux\appdata\local\programs\python\python310\lib\site-packages (from pefile>=2022.5.30->pyinstaller) (0.18.2)
就是說 Pyinstaller 已經安裝了,但是 python 不識別它。
在你問之前,如果我嘗試將 pyinstaller 作為獨立命令運行,它會說它找不到 pyinstaller。
編輯:已經一個多月了,沒有人回復。 忘了它。 我只是不會申請。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.