Problem with psutil -- fresh install on Ubuntu 15 fails
See original GitHub issueDoing a fresh install on Ubuntu 15 and I get up to this step…
pip3 install --user -r pipeline/requirements.txt
…and I get:
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -W$
psutil/_psutil_linux.c:12:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Cleaning up...
Command /usr/bin/python3.5 -c "import setuptools, tokenize;__file__='/tmp/pip-build-kgtc3zry/psutil/setup.py';exec(comp$
Exception information:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 309, in run
requirement_set.install(install_options, global_options, root=options.root_path)
File "/usr/lib/python3/dist-packages/pip/req.py", line 1436, in install
requirement.install(install_options, global_options, *args, **kwargs)
File "/usr/lib/python3/dist-packages/pip/req.py", line 707, in install
cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
File "/usr/lib/python3/dist-packages/pip/util.py", line 716, in call_subprocess
% (command_desc, proc.returncode, cwd))
pip.exceptions.InstallationError: Command /usr/bin/python3.5 -c "import setuptools, tokenize;__file__='/tmp/pip-build-k$
Doing apt-get install python-dev
before running all this didn’t help. Looks like something may be up with psutil
?
Issue Analytics
- State:
- Created 8 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
pip install psutil fails for 5.7.0 on Ubuntu Focal with Python 3.8 ...
Upon trying to install psutil on above OS the process fails that the wheel can not be built. Results. Building wheel for psutil...
Read more >python - Can't Install psutil - Stack Overflow
I'm new to command line so confused about what is causing the error and how to fix it... This is the error message...
Read more >Broken python dependencies after trying to re-install
1 Answer 1 · Okay, seems like I fixed it for 3.6 but not for 2.7 :( · what's about python2. · When...
Read more >Error while fresh install - ERPNext Forum
I am trying to install erp on a new fresh ubuntu server, but I have encountered this error. Logs are saved under /tmp/logs/easy-install__2021-02 ......
Read more >ModuleNotFoundError: No module named 'psutil' in Python
To solve the error, install the module by running the pip install psutil command. no module named psutil. Open your terminal in your...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
https://bugs.launchpad.net/ubuntu/+source/python-pip/+bug/1518023 is now fixed, so the
python3-pip
on Ubuntu 15.10 uses python3.4.All these versions are old now, but the installation is working well on Ubuntu 17.04 with psutil 5.2.2 and python 3.5.3 (with no venv or anything like that).