Xivi76
Xivi76

Reputation: 113

Error when installing a python module in Linux

I am encoutering two kinds of issues while trying to install a package called Boltztrap2.

1) Trying to install Boltztrap2 using 'pip3'. However, when I punch in the command, the process goes smoothly for a while and then spits out an error :

BoltzTraP2/sphere/frontend.cpp:32:20: fatal error: Python.h: No such file or directory
 #include "Python.h"
                    ^
compilation terminated.
error: command 'gcc' failed with exit status 1 

I did some troubleshooting and found out that it is just a path issue - I confirmed this by typing 'locate Python.h'. However, I don't get how to manually incorporate this change since the 'pip3' command that I use downloads the program and compiles it automatically. I don't seem to have access to change any scripts, or rather I do not know how to, since I'm kind of new to all this.

PS: I do not have sudo access.

2) Trying to install Boltztrap2 by manually compiling the python setup file: This seems to work fine until the system spits out an error saying:

Error:numpy is not installed.

PS: Again, I do not have sudo access.

I would be very glad if someone could help me install this package through either method. I just want to get the software to work. Thanks in advance for any assistance.

Upvotes: 0

Views: 336

Answers (1)

Rohan Mukherjee
Rohan Mukherjee

Reputation: 290

python3 -m pip install --upgrade pip
pip3 install numpy

Check if you can upgrade pip? If that works then you can pip install numpy.

Upvotes: 1

Related Questions