pythonlinuxvirtualenvarchlinux-armpacman-package-manager

How to use the NumPy installed by Pacman in virtualenv?


My system is Archlinux. My project will use NumPy, and my project is in a virtual environment created by virtualenv.

As it is difficult to install NumPy by pip, I install it by Pacman:

sudo pacman -S python-scikit-learn

But how can I use it in virtualenv?


Solution

  • You can create the virtualenv with the --system-site-packages switch to use system-wide packages in addition to the ones installed in the stdlib.