Mastodon Mastodon - PyCharm, Arch linux & Python 3.6
 logo
  • Home 
  • Tags 
  • Blog posts 
  1. Home
  2. Blog posts
  3. PyCharm, Arch linux & Python 3.6

PyCharm, Arch linux & Python 3.6

Posted on January 17, 2017  (Last modified on July 11, 2024) • 1 min read • 126 words
Linux: Arch   Linux   Solved   Python   Dev  
Linux: Arch   Linux   Solved   Python   Dev  
Share via

Love Python. Love PyCharm. Love Arch Linux.

Unfortunately Arch sneakily updated Python to 3.6. Cool, new version … but hey, why don’t my debug runs in PyCharm work any more??

ImportError: libpython3.5m.so.1.0: cannot open shared object file: No such file or directory

Yup, pretty confusing. It seems unable to find shared python 3.5 library. Well. After some cursing, turns out the solution is pretty simple (if you know what to do):

  • get pyenv
  • use pyenv to install Python 3.5.2, but with -enable-shared option set
  • use this python version for PyCharm projects (it does not matter if it’s in a virtualenv or not)

Like this:

$ PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install 3.5.2
[...]
$ sudo $HOME/.pyenv/versions/3.5.2/bin/python "/opt/pycharm-professional/helpers/pydev/setup_cython.py" build_ext --inplace
[...]
$ _

That solved it for me 🙂

References:  

  • https://github.com/yyuu/pyenv/issues/65
 Syntax highlighting with wordpress
Logs with docker and logstash 
In case you want to follow me

Here are some links. The further to the right, the less active.

           
(c) Axel Bock | Powered by Hinode.
Link copied to clipboard
Code copied to clipboard