简体   繁体   English

当我尝试使用 pyinstaller 时它声称它没有安装,当我尝试安装它时它声称它已经安装?

[英]When i try to use pyinstaller it claims that it's not installed, when i try to install it it claims it's already installed?

So the title explains it all.所以标题说明了一切。

C:\Users\username>py -m pip install  pyinstaller
Requirement already satisfied: pyinstaller in c:\users\username\appdata\roaming\python\python37\site-packages (3.5)
Requirement already satisfied: altgraph in c:\users\username\appdata\roaming\python\python37\site-packages (from pyinstaller) (0.16.1)
Requirement already satisfied: pefile>=2017.8.1 in c:\users\username\appdata\roaming\python\python37\site-packages (from pyinstaller) (2019.4.18)
Requirement already satisfied: setuptools in c:\program files (x86)\microsoft visual studio\shared\python37_64\lib\site-packages (from pyinstaller) (40.8.0)
Requirement already satisfied: pywin32-ctypes>=0.2.0 in c:\users\username\appdata\roaming\python\python37\site-packages (from pyinstaller) (0.2.0)
Requirement already satisfied: future in c:\users\username\appdata\roaming\python\python37\site-packages (from pefile>=2017.8.1->pyinstaller) (0.18.2)

C:\Users\username>py -m pyinstaller
C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\python.exe: No module named pyinstaller

NOTES: I use py instead of python because python doesn't work for an unknown reason注意:我使用 py 而不是 python 因为 python 由于未知原因无法工作

C:\Users\username>python
'python' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\username>py
Python 3.7.4 (tags/v3.7.4:e09359112e, Jul  8 2019, 20:34:20) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>

Invoking just "pyinstaller" doesn't work neither it does for pip仅调用“pyinstaller”对 pip 也不起作用

C:\Users\username>pip
'pip' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\username>py -m pip

Usage:
  C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\python.exe -m pip <command> [options]
(...)

C:\Users\username>pyinstaller
'pyinstaller' is not recognized as an internal or external command,
operable program or batch file.

I'd like to know why these things work differently for other people as well.我想知道为什么这些东西对其他人也有不同的作用。

Read those instruction from main page https://pyinstaller.readthedocs.io/en/stable/installation.html从主页阅读这些说明https://pyinstaller.readthedocs.io/en/stable/installation.html

Try install by pip install pyinstaller .尝试通过pip install pyinstaller 安装 if leads to numpy error then downgrade the pyinstaller version to 3.4 by pip install pyinstaller==3.4如果导致 numpy 错误,则通过pip install pyinstaller==3.4 将 pyinstaller 版本降级到 3.4

If anyone else has the same problem the solution of installing different version works.如果其他人有同样的问题,安装不同版本的解决方案有效。 After that you can do pip install --upgrade pyinstaller and it will be up-to-date and working, no idea why...之后你可以做pip install --upgrade pyinstaller它将是最新的并且可以工作,不知道为什么......

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Geopandas 说它已经安装,但是当我尝试导入时,我得到了 OSError - Geopandas says it's installed, but when I try to import, I get OSError Python PIP声称已安装软件包,但未找到我使用的软件包 - Python PIP claims that a package is installed but whet I use package it is not found 当我尝试安装pyinstaller时,无法运行命令 - When i try to install pyinstaller, I can't run the command 当我尝试安装 pandas 时,我收到错误“没有名为 pandas 的模块”,但我确实安装了它 - When I try to install pandas I receive the error 'no module named pandas', but I do have it installed 我肯定在我的 windows 上安装了 PyAudio,但是当我尝试安装到 Pycharm 时,我收到这条消息? - I have PyAudio installed on my windows for sure, but when I try to install into Pycharm I get this message? 使用“pip3 install”成功安装了“pytesseract”,但是当我尝试在 Jupyter Notebook 上导入它时,它失败了 - Used “pip3 install” to successfully installed “pytesseract”, but when I try to import it at Jupyter Notebook, it failed on me conda 认为 package 已安装,但无法正常工作。 当我尝试卸载时,它想删除 120 多个其他包 - conda thinks a package is installed, but it's not working. when I try to uninstall, it wants to remove 120+ other packages 要求已安装,但是当我尝试运行该程序时它说它没有 - Requirement is installed but when I try to run the program it says it doesn't 当我尝试打开它时 pyinstaller 程序错误 - pyinstaller program errors when i try to open it 无法识别新的 Python 版本。 我安装了新的 python 版本,但是当我尝试安装软件包时出现错误 - New Python version not recognised. I installed the new python version but I get an Error when I try to install packages
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM