Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
> ./configure --enable-python3interp=dynamic --enable-gui=gtk2
> --with-python3-config-dir=/usr/lib/python3.2/


vim --version|grep pyth

    +cryptv          +linebreak       -python          +viminfo
    -cscope          +lispindent      +python3/dyn     +vreplace

but if i do: :python3 print('hi') I get:

E448: Could not load library function PySys_SetArgv
E263: Sorry, this command is disabled, the Python library could not be loaded.
share|improve this question

migrated from serverfault.com Jun 2 '13 at 6:28

This question came from our site for system and network administrators.

I fixed this by removing the trailing '/' in this line '--with-python3-config-dir=/usr/lib/python3.2/'

like so: --with-python3-config-dir=/usr/lib/python3.2

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.