Arch linux Install #311
Replies: 2 comments 1 reply
-
Hi, on Arch Linux the Python packages are managed by Pacman the package manager, so you cannot install packages manually from Python Pip. python3 -m venv venv You should now have a new source venv/bin/activate Then you can follow the rest of the documentation to install dependencies and run the project PS: if you're not familiar with Linux you may find Arch Linux is not the best distribution to start with. It is very technical and a lot must be done by the user (like this for instance). I would recommend a more user-friendly distribution like Ubuntu to begin with. |
Beta Was this translation helpful? Give feedback.
-
Thanks @mathoudebine for the explanation; note that it works also for other linux when |
Beta Was this translation helpful? Give feedback.
-
Anyone have instructions on how to install this in Arch. I have tried the python pip install on the wiki, but it fails instantly. I am totaly a newb to linux and python, but trying to make the switch. The error I get is:
python3 -m pip install -r requirements.txt
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try 'pacman -S
python-xyz', where xyz is the package you are trying to
install.
If you wish to install a non-Arch-packaged Python package,
create a virtual environment using 'python -m venv path/to/venv'.
Then use path/to/venv/bin/python and path/to/venv/bin/pip.
If you wish to install a non-Arch packaged Python application,
it may be easiest to use 'pipx install xyz', which will manage a
virtual environment for you. Make sure you have python-pipx
installed via pacman.
Beta Was this translation helpful? Give feedback.
All reactions