I also had the problem "ModuleNotFoundError: No module named 'Cython'" when building from the terminal with Pamac on Manjaro. However, I had a conda virtual environment activated.
The build finished successfully for me when using Pamac GUI.
| Git Clone URL: | https://aur.archlinux.org/pycharm.git (read-only, click to copy) |
|---|---|
| Package Base: | pycharm |
| Description: | The only Python IDE you need. Bundled with the official JetBrains Runtime (JBR) |
| Upstream URL: | https://www.jetbrains.com/pycharm/ |
| Licenses: | custom |
| Conflicts: | pycharm-community-edition, pycharm-professional |
| Provides: | pycharm |
| Replaces: | pycharm-professional |
| Submitter: | Xavier |
| Maintainer: | Zpecter (Meaulnes) |
| Last Packager: | Zpecter |
| Votes: | 309 |
| Popularity: | 1.12 |
| First Submitted: | 2025-10-04 18:47 (UTC) |
| Last Updated: | 2026-07-03 19:20 (UTC) |
« First ‹ Previous 1 .. 14 15 16 17 18 19 20 21 22 23 24 .. 49 Next › Last »
I also had the problem "ModuleNotFoundError: No module named 'Cython'" when building from the terminal with Pamac on Manjaro. However, I had a conda virtual environment activated.
The build finished successfully for me when using Pamac GUI.
I don't have errors in the build but I'll check it, thanks @Cthulu201
I usually build in a clean chroot (no makepkg -s) and was getting Cython errors. I've modified your PKGBUILD so it builds and runs for me. Happy for any feedback: https://0bin.net/paste/0tfmKwCN#wGHqvnUJ7bAHshbTKahSR1DeqMyWndoN+CPmEaHz9KX
It looks like my issues was that I use pyenv and I had 3.9 set as the global python version. setting pyenv global system works for me.
Note that there is an issue with setting the global version to system on Arch, in that it check for python being in a bin dir, not sbin and on my system /usr/sbin was a symlink to /usr/bin and sbin was first. To fix it I unlinked /usr/sbin, set pyenf global to system, installed pycharm, then added the link back.
I am getting the same error. Fresh terminal with no environment loaded, and nothing in PYTHONPATH. I also made sure to clear the cache and do a clean build.
==> Starting build()...
Traceback (most recent call last):
File "/home/shawn/.cache/yay/pycharm-professional/src/pycharm-2021.1/plugins/python/helpers/pydev/setup_cython.py", line 112, in <module>
build_extension("_pydevd_bundle", extension_name, target_pydevd_name, force_cython, extension_folder, True)
File "/home/shawn/.cache/yay/pycharm-professional/src/pycharm-2021.1/plugins/python/helpers/pydev/setup_cython.py", line 69, in build_extension
from Cython.Build import cythonize # @UnusedImport
ModuleNotFoundError: No module named 'Cython'
==> ERROR: A failure occurred in build().
Aborting...
error making: pycharm-professional
Works now, I did indeed have a virtualenv active. Oops and thanks @XavierCLL, @klaasjanelzinga!
Hi @evandare, pls check if you do not have a virtualenv active.
Hi @evandare, your error may be due to various reasons (but none related to this package) check your PYTHONPATH of if you have a special installation of some components in Python. You can also build the package in a clean chroot [0] or use an unofficial repo [1].
[0] https://wiki.archlinux.org/index.php/DeveloperWiki:Building_in_a_clean_chroot [1] chaotic-aur
Hi, I get the following error during the build step:
==> Starting build()...
Traceback (most recent call last):
File "/home/XXX/.cache/yay/pycharm-professional/src/pycharm-2021.1/plugins/python/helpers/pydev/setup_cython.py", line 112, in <module>
build_extension("_pydevd_bundle", extension_name, target_pydevd_name, force_cython, extension_folder, True)
File "/home/XXX/.cache/yay/pycharm-professional/src/pycharm-2021.1/plugins/python/helpers/pydev/setup_cython.py", line 69, in build_extension
from Cython.Build import cythonize # @UnusedImport
ModuleNotFoundError: No module named 'Cython'
==> ERROR: A failure occurred in build().
Aborting...
error making: pycharm-professional
Installing Cython via pacman -S cython doesn't seem to fix it.
There is a new version available 2021.1
Pinned Comments
Meaulnes commented on 2026-03-27 16:37 (UTC)
This comment from @AvacadoCookie should be pinned, IMO.
If anyone is getting errors about
Cythonorsetuptools, and they are usingConda, that comment has the answer.If anyone is getting errors about
Cythonorsetuptools, and they are usingpyenv, there are 2 possible ways to fix it:pyenv local systemto set Python back to the system installed Python for this session.pip install Cython setuptoolsto install the necessary packages to your preferred python installation.AvocadoCookie commented on 2025-12-14 16:22 (UTC)
For all users with
ModuleNotFoundError: No module named 'Cython'or'setuptools'reported, please try the following methods to address the problem:condaenvironment. Now afterwhich pythontyped in console, the output should be/usr/bin/python.pacman -S cython python-setuptools.