vfox
vfox copied to clipboard
[BUG]: vfox environment variables have higher priority than python venv
trafficstars
Version 0.2.6 OS macOS
Describe the bug
vfox environment variables have higher priority than python venv. As a result, python venv cannot actually take effect.
I think vfox use -p is not a complete replacement for venv unless it also installs dependencies within the project instead of globally.
实测在deepin v23 beta3 上,进入venv 后,pip 安装的包,没有安装在venv里,而是安装在 vfox cache 下的python 版本下了
(vfox use -p 正常执行前提下)
这个目前没有精力去跟进, 等插件重构完之后, python插件会单独拆分为一个库进行维护(到时候所有的插件都是). 到呢时候在跟进插件的具体问题.
另外, 我在写python插件的时候, 因为我对于python的使用很单一, 而且不频繁. 所以后面可能需要经常使用python的贡献者去跟进和维护它.
用python -m pip似乎可以安装到python目录下