google / trax

Trax — Deep Learning with Clear Code and Speed
Apache License 2.0
8.09k stars 814 forks source link

Installation with pip in Ubuntu #1029

Open saurabhkumar opened 4 years ago

saurabhkumar commented 4 years ago

Description

I am unable to install trax using pip in an Ubuntu18.04 VM (windows10 host). It could not install tensorflow>=2.2 on the default python (3.6.9). So I installed Python3.8. But then i get errors with tensorflow addons (tensor2tensor->trax==1.3.1). Then i tried with Python3.7.5. I still get the same error as above.

A documentation of the minimum required environment would be helpful.

Environment information

OS: Ubuntu 18.04 VM (virtualbox) on Windows10 host

$ pip freeze | grep trax

your output here

$ pip freeze | grep tensor

your output here

$ pip freeze | grep jax

your output here

$ python -V

your output here


### For bugs: reproduction and error logs

Steps to reproduce:

...

Error logs:

...

Nishant-Pall commented 4 years ago

I had the same problem, try doing it with pip3 instead of pip

tyarosevich commented 4 years ago

Same problem in Ubuntu 20.04, pip3 produced the same error.

javiervg commented 4 years ago

I had this error a while back with Ubuntu 20.04. After some research found a solution somewhere and you need to run before installing trax:

sudo apt-get install python-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev libsmpeg-dev python-numpy subversion libportmidi-dev ffmpeg libswscale-dev libavformat-dev libavcodec-dev libfreetype6-dev

Then pip install trax

Hope this helps.