找不到pyinstaller命令 [英] pyinstaller command not found

查看:819
本文介绍了找不到pyinstaller命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在VirtualBox上使用Ubuntu.如何将pyinstaller添加到PATH?

I am using Ubuntu on VirtualBox. How do I add pyinstaller to the PATH?

问题是我说

pyinstaller file.py

说找不到pyinstaller命令

it says pyinstaller command not found

它说它已经正确安装,并且根据其他帖子,我认为它已经安装了,但是我无法使其正常工作.我跑了:

It says it installed correctly, and according to other posts, I think it has, but I just can't get it to work. I ran:

pip install pyinstaller

pyinstaller file.py 

但是它不起作用.我想我需要将其添加到Shell路径中,以便Linux知道在哪里可以找到它.

but it won't work. I think I need to add it to the shell path so Linux knows where to find it.

pip show pyinstaller有效.

推荐答案

如果不想创建其他python文件,则可以使用以下命令.

You can use the following command if you do not want to create additional python file.

python -m PyInstaller myscript.py

这篇关于找不到pyinstaller命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆