pyinstaller将VUE项目打包成exe
方法一:使用python虚拟环境
pip install virtualenv
virtualenv env_name设置环境
export PATH=/d/Users/luxing3/AppData/Local/Programs/Python/Python38/:$PATHpyinstaller F:\\TVS_JIRA\\JIRA_data_analysis_tool\\server\\venv\\Scripts F:\\TVS_JIRA\\JIRA_data_analysis_tool\\server\\app.pyerror汇总
1.no module named “http.cookies”
需要安装django
2.WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000002027B5ED220>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/virtualenv/
方法一、//无效方法如下
If you know your proxy information, you can pass that to your command line:
pip install --proxy=user:pass@server:port numpy pip install --proxy=xxx:xxxx@10.11.108.16:10809 numpyA full string could be something as simple as:
pip install --proxy=http://proxy.example.com numpy方法二:
pip install xx -i http://pypi.douban.com/simple/or
pip install xx -i http://pypi.douban.com/simple --trusted-host pypi.douban.compip install virtualenv -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip install virtualenv -i http://pypi.douban.com/simple --trusted-host pypi.douban.com方法三:
python -m pip install --proxy=http://127.0.0.1:10809 django
python3 -m pip install --proxy=http://proxy.example.com:port --upgrade pip
python3 -m pip install --proxy=http://proxy.example.com:port couchbase3.PermissionError: [Errno 13] Permission denied: 'C:\my\path\here'
that's a really misleading Windows error. You should never need admin for PyInstaller. PermissionError: [Errno 13] Permission denied: actually means any of:
You tried to read or write a file which already exists but is a folder (usually that just means delete the folder that's in the way).
You tried to move or replace a file which is open in another application. This is very common in PyInstaller if you open a command prompt or file explorer inside the dist folder, then try to rebuild your program. PyInstaller wants to replace the contents of dist but it's already open in your prompt/explorer. In which case, close the offending programs.可能产生的原因是文件找不到,或者被占用,或者无权限访问,或者打开的不是文件,而是一个目录。
其他问题:
python中rc1什么意思 参考文档
Python 3.7.1rc1 和 3.6.7rc1 现已推出。3.7.1rc1 是 Python 3.7 的第一个维护版本的发布预览版,这是 Python 的最新功能版本。3.6.7rc1 是 Python 3.6 的下一个维护版本的发布预览版,这是 Python 的功能版本。
假设在 2018-10-06 之前没有发现任何严重问题,那么这些发布候选版本和最终版本之间不会计划更改代码。 这些候选版本旨在让您有机会测试3.7.1和3.6.7中的新安全性和错误修复。由于是预览版本,因此不建议在生产环境中使用。参考文档:
