Comments (4)
是的, 新版本中已得到修复! python_version
使用 '3.8' | '3.9' 均可以正常编译.
此外:
enable_venv
选项用于指定 "创建一个虚拟环境" (true) 还是 "使用电脑系统已安装的 python" (false).- 无论是否开关,
python_version
都起作用, 它将为虚拟环境或系统 python 指定其 解释器版本.
近期的更新着重解决了 python_version
指定的版本与 <dist>/lib/pyportable_runtime/inject.pyd
编译版本不协调的问题.
from pyportable-installer.
你好, "DLL load failed ..." 该报错初步认为是 Python 解释器版本与 ~/lib/pyportable_runtime/inject.pyd
的编译版本不同导致的.
由默认的 hello world 示例产生的打包结果中, 其 lib/pyportable_runtime/inject.pyd
文件是 Python 3.9 编译的.
使用 Python 3.8 或以下的解释器启动, 就会产生此错误.
该现象可由下面的操作复现:
- 打开 CMD
- 切换到打包结果所在的目录
- 输入
"C:\Program Files\Python38\python.exe" src\pylauncher.py
(请将示例路径替换为您的实际路径)- 产生 "DLL load failed ..." 报错
- 输入
"C:\Program Files\Python39\python.exe" src\pylauncher.py
- 程序正确运行
from pyportable-installer.
最近的更新已修复此错误, 请尝试重新拉取项目. 如果此问题仍然发生, 欢迎再次提问!
from pyportable-installer.
谢谢你的回答。
我把pyproject.json里venv的python_version改成3.9,构建完发现又可以了。。(其他一个字都没动过)
修改后的内容:
"venv": {
"enable_venv": false,
...
"python_version": "3.9",
...
}
但是当我又把它改回3.8,删除构建过的文件再构建,发现仍然出现此错误。然我感到奇怪的是明明没有启用venv,但是venv底下的python_version仍然决定了文件的运行效果
不知道这个问题在新的版本中有没有修复。
from pyportable-installer.
Related Issues (12)
- pip install 报找不到模块 HOT 4
- ImportError: cannot import name 'currdir' from 'lk_utils.filesniff HOT 1
- 配置无控制台打包,移动后仍有控制台 HOT 1
- Tk套件已安装仍报错缺失
- 只支持python3.8及以上吗? HOT 1
- LKlogger object has no attribute logt HOT 1
- Error: No such option: --format HOT 1
- 软件包运行报错 HOT 8
- ImportError: cannot import name 'std_print' from 'lk_logger.general' HOT 3
- TypeError: 'type' object is not subscriptable HOT 4
- 打包完成后出现requests不存在
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyportable-installer.