You are not logged in.
I do not want to compile it from the beginning, and I can not remove python2 while I have installed many applications depend on python2 too.
Last edited by acgtyrant (2018-06-05 10:21:22)
I use Arch Linux.
Offline
Not much else you can do but recompile it...
Offline
Why do you wish to remove python2 support? Why not just use python3 with the vim package from the repos?
Managing AUR repos The Right Way -- aurpublish (now a standalone tool)
Offline
@Eschwartz I met the "vim: symbol lookup error: vim: undefined symbol: ..." error in my virtual environment which is created by python 3.6.2. See https://stackoverflow.com/a/32551050/1546088
I think this may because the vim is linked to the needless python 2, I want the vim only use python 3 so that it is compatible with the virtual environment.
I use Arch Linux.
Offline
That link says that vim would need to be compiled in your virtualenv against the python3 from the virtualenv, and python2 should be irrelevant.
Have you considered upgrading your virtualenv to use the current version of the system python? Python 3 actually comes with a very nice venv module in the stdlib which handles this much better.
Managing AUR repos The Right Way -- aurpublish (now a standalone tool)
Offline
@Eschwartz I use `python -m venv` to create the virtual environment actually.
I use Arch Linux.
Offline
Well, I'm not sure what to say besides "it works fine for me". Which versions of vim and python do you have installed?
(Note also that vim will not load the site-packages directory when run inside the virtualenv.)
Managing AUR repos The Right Way -- aurpublish (now a standalone tool)
Offline
@Eschwartz I can not reproduce the error suddenly now, thank you anyway.
I use Arch Linux.
Offline