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

profile.py和名字和python3内置的库名一样,会导致其他程序出现坑爹的问题 #152

Closed
DogeVenci opened this issue Mar 8, 2019 · 4 comments

Comments

@DogeVenci
Copy link

No description provided.

@Jrohy
Copy link
Owner

Jrohy commented Mar 8, 2019

什么问题呢,能否截个图

@DogeVenci
Copy link
Author

DogeVenci commented Mar 9, 2019

因为安装了multi-v2ray后,PATH加入了/usr/local/multi-v2ray,其他python脚本如果import了profile会引用到/usr/local/multi-v2ray里面的profile.py,有其他很多程序会用到这个profile module导致问题。

import profile
print(profile.__file__)

输出的是/usr/local/multi-v2ray/profile.py

@Jrohy
Copy link
Owner

Jrohy commented Mar 9, 2019

如果有冲突可以用着https://pypi.org/project/v2ray-util/ 用着这个先,后面会改造成调用这个来安装,无需环境变量

@Jrohy
Copy link
Owner

Jrohy commented Mar 17, 2019

@DDogeChan 更新下脚本,现在脚本直接用pip来安装了, 不会出现库名冲突的情况了

@Jrohy Jrohy closed this as completed Mar 17, 2019
@Jrohy Jrohy mentioned this issue Mar 17, 2019
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