Closed BillRaymond closed 10 months ago
Sorry, Ubuntu 22.04
Ubuntu is using glibc
, no need to install musl-dev
.
Notice you're running python3 -m pip install --upgrade pip
before running update-alternatives
.
This means you upgraded pip to the latest 23.2.1
for Python 3.10, but for Python 3.11 the apt-provided pip 22.0.2 is still used.
Run update-alternatives
before updating pip to actually have an up-to-date pip with proper 3.11 support - it should resolve the problem for you :)
Thank you @ben9923! I was so focused on getting the correct version of Python3 installed that I had yet to consider that pip would be the problem. I just wanted to let you know that you fixed my situation, and all is functioning as expected. Thanks again!
Summary
Description
I am building a Docker container to use JupyterLab, which fails to build due to an error with psutil, so I attempted to install pustil first and that appears to be the issue. I install Python using the deadsnakes PPA, like this:
Next, I upgrade/update my package managers. I also make sure 3.11.5 (which is the most current version of 3.11.x at the time of this writing), like this:
I install gcc, musl-dev and python3-dev, like this:
Whether I use
pip install psutil
or the more detailed version, which ispip install --no-binary :all: psutil
, psutil never installs.Here is the detailed log when using
pip install --no-binary :all: psutil
:How can I successfully install psutil?
Side note: If I change my Python version to 3.10.x, psutil installs just fine.