# Python package Issue in Docker

Source: https://forum.modalai.com/topic/197/python-package-issue-in-docker
Category: General Questions (https://forum.modalai.com/category/2/general-questions)
Posted: 2021-04-14 13:06:42 UTC by Guest
Replies: 2 · Views: 725

## Guest · 2021-04-14 13:06:42 UTC

Hi ModalAI Team,

I am creating Python scripts for ROS and within docker-kinetic on VOXL m500 

I have a few questions.

I am installing some python packages such as pandas, opcua etc.  I am installing them in roskinetic directory with following command:

python2.7 -m pip install pandas

Some packages were installed and worked just fine but I cannot install pandas. It gives the following error:

![5d819959-6707-40f9-a0b0-ca134b36f5c0-image.png](https://forum.modalai.com/assets/uploads/files/1618404646764-5d819959-6707-40f9-a0b0-ca134b36f5c0-image.png) 

I searched on the internet and it seems like its a problem with Python version.

**1)** At this point, what would you recommend to fix it?

**2)** I would like confirm if i am installing to the right place (roskinetic directory in docker)

**3)** After I power off and on, the Python packages, I installed, goes away and I need to install again. So, Should I run "docker commit" to save? or what am I doing wrong?

I am quite new to the Docker system, I would be so happy to get any help in this topic.

thank you in advance!
Ayberk

## Reply by Eric Katzfey (ModalAI staff) · 2021-04-14 15:55:21 UTC

You should build up your Docker images with a Dockerfile and 'docker build'. However, if you make changes in the container that you want to keep then, yes, you can use 'docker commit'. There is a lot of good documentation on the Docker site about all of this.

## Reply by Guest · 2021-04-15 09:38:29 UTC (in reply to Eric Katzfey)

@Eric-Katzfey  Thank you so much for your answer!
