Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pkg-config error in tensorflow pip install

I'm getting the following error when trying to install tensorflow either in virtual environment in pycharm or via the terminal:

error: pkg-config probably not installed: FileNotFoundError(2, "No such file or directory: 'pkg-config'")

But pkg-config is definitely installed on my system. Any help is appreciated.

like image 293
flathead_lake Avatar asked Jul 31 '26 00:07

flathead_lake


1 Answers

My mistake - I thought that it required python pkgconfig (which was installed on my system).

sudo apt-get install pkg-config fixed the error.

like image 79
flathead_lake Avatar answered Aug 02 '26 14:08

flathead_lake



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!