Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip安装的最新版没法用 #20

Closed
mengmo opened this issue Sep 25, 2016 · 8 comments
Closed

pip安装的最新版没法用 #20

mengmo opened this issue Sep 25, 2016 · 8 comments

Comments

@mengmo
Copy link
Collaborator

mengmo commented Sep 25, 2016

python -m ykdl -i http://www.iqiyi.com/v_19rr9h0t5g.html
D:\PortableApps\Python\python.exe: No module named ykdl.__main__; 'ykdl' is a package and cannot be directly executed
@zhangn1985
Copy link
Collaborator

请直接 ykdl -i http://www.iqiyi.com/v_19rr9h0t5g.html

ykdl.__main__ 已经移除了。

@zhangn1985
Copy link
Collaborator

fc25187 是这个改动导致的。有意为之。

@mengmo 你的python是怎么安装的?PortableApps? 你的python安装目录可有Scripts? 安装版的python,是可以直接通过ykdl来运行的。

@zhangn1985
Copy link
Collaborator

注意:python安装目录下的Scripts目录必须在PATH变量中,.py要在PATHEXT变量中。
如下:

C:\Documents and Settings\new>echo %PATH%
C:\Python34\Scripts;C:\Python34\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem

C:\Documents and Settings\new>echo %PATHEXT%
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.PY

C:\Documents and Settings\new>

具体怎么绣稿环境变量Google/Baidu吧。

@mengmo
Copy link
Collaborator Author

mengmo commented Sep 25, 2016

更新一下,目前 Python 的安装我是这样弄的
https://my.oschina.net/livelite/blog/826054
@zhangn1985
Python我是先安装,将安装目录打包以后卸载。再解压到portableapps目录下,然后修改环境变量。
个人不喜欢第三方软件修改注册表及向系统盘写文件,所及只要能满足需求,基本上都是用的portable apps
按照你的操作要求试了之后,发现还需要设置.py的文件关联,也不清楚还有坑没了。不打算继续试了,以后就用打包的exe

@mengmo
Copy link
Collaborator Author

mengmo commented Sep 25, 2016

@zhangn1985 顺便问个题外话,知道python的安装包是哪种打包格式么?本来我是打算直接手动解开python的安装包搞portable的,结果搜了好长时间,试了不少工具都不行。

@zhangn1985
Copy link
Collaborator

我对安装包这个不了解。只是知道python35是MSI。这个问题就关了哦。

@mengmo
Copy link
Collaborator Author

mengmo commented Sep 27, 2016

既然把这个问题发这儿了,我就把找到的答案也给出来(终于知道了,不发出来岂不是对不起花费在这上的时间)
python的安装包用的是叫做WiX Toolset的东东
顺便吐个槽:最讨厌这种exe里带msi/cab的。
installer我还是青睐inno

@zhangn1985
Copy link
Collaborator

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants