ubuntu16 安装pyinstaller 显示command not found
2017-08-19 10:23
1651 查看
在将代码移植到ubuntu后,想利用pyinstaller将代码打包成可执行文件,但是在安装pyinstaller的时候出了一些问题,在网上没怎么看见有解决这个问题的办法,最后尝试了一下直接从官网下载安装而没有通过pip3安装居然成功了,写篇博客纪念一下。
在这里我不知道是我系统的问题还是大家都这样,命令行提示我pyinstaller安装成功了,但是我输入 pyinstaller 提示我 command not fount ,当然也尝试了网上 python pyinstaller.py -F xx.py 操作,都不能对程序进行打包。
我的解决办法是到pyinstaller官网下载,我下载的是 PyInstaller 3.2.1 (tar.bz2)包,下载到本地以后进行解压:
解压完成后进入文件夹执行:
安装完成后就可以进入你的文件目录进行打包了。
1.python3的安装:
sudo apt-get install python3
2.安装pip3
sudo apt-get install python3-pip
3.重链接到python3
ubuntu默认python版本是python2.x,想使用python3需要进行重链接操作:sudo rm /usr/bin/python sudo ln -r /usr/local/Python/Python-3.4.2/python /usr/bin/python
4.通过pip3安装pyinstaller
pip3 install pyinstaller
在这里我不知道是我系统的问题还是大家都这样,命令行提示我pyinstaller安装成功了,但是我输入 pyinstaller 提示我 command not fount ,当然也尝试了网上 python pyinstaller.py -F xx.py 操作,都不能对程序进行打包。
我的解决办法是到pyinstaller官网下载,我下载的是 PyInstaller 3.2.1 (tar.bz2)包,下载到本地以后进行解压:
tar -xjf xx.tar.bz2
解压完成后进入文件夹执行:
python setup.py install
安装完成后就可以进入你的文件目录进行打包了。
相关文章推荐
- ubuntu下arm-linux-gcc已安装,root用户使用却显示command not find
- ubuntu系统安装anaconda3或者miniconda3运行指令,提示sudo:conda: command not found解决办法
- 【转】mac终端安装node时候,显示“-bash: brew: command not found”,怎么解决?
- 在ubuntu16中安装pyinstaller打包
- VMware 安装Ubuntu16.04时显示不全的解决方法
- VMware 安装Ubuntu16.04时显示不全的解决方法
- Ubuntu 安装FMS A required package, libcap, was not found 解决方案
- devstack安装heat失败,报错“$'\r': command not found”
- 虚拟机中Centos7安装完毕后无法联网显示Server not found的解决方法
- -Bash: Unzip: Command Not Found解决方法 安装unzip
- Ubuntu16 安装 tensorflow-gpu + keras (python3.5)
- ubuntu gcc(4.6/5.2)源码安装(version `CXXABI_1.3.8' not found)
- ubuntu 安装cuda8.0后,分辨率无法正确显示的解决方案
- ubuntu 16 安装vim 编辑器
- 解决linux64位安装jpeg 出错make: ./libtool: Command not found
- Ubuntu16安装QQ
- mac下node安装提示command not found
- 跟着SY速学Ubuntu系列二:Ubuntu16 编译安装 Apache24&&PHP7&&Mysql57
- virtualbox安装Ubuntu server16,配置双网卡NAT和localhost