How to transfer installed programs from old computer to new?

How can I transfer all of my python programs to another computer?

  • I recently bought a new computer.  I am new to programming, so have never dealt with this problem.  I have a number of programs that I need to move over to that new computer.  Many of these programs use libraries.  Is there an easy way for me to transfer all of my files and their associated libraries from one computer to the next, or am I going to have to reinstall everything over again in the new computer.  If the answer is the latter, is there an easy way for me to do that?  I am worried that its going to take me days to get this done the way I am planning on doing this.

  • Answer:

    I guess you are wondering about how to transfer the external libraries. In this case you can export all the libraries installed pip freeze > requirements.txt Then move the requirements.txt file on your new computer and execute pip install -r requirements.txt Also, it is a good idea to use virtualenvs for python development, as you can export the dependencies much easier.

Andrei Misarca at Quora Visit the source

Was this solution helpful to you?

Other answers

Apart from what said. I suggest, to have a version repository (like git or bitbucket) for all your programs. They are basically version control systems for your code which are hosted online. ( github.com   http://bitbucket.com etc ) and yes its free. In this way , no matter which system you are , your code is always online and can be checked out whenever you want.

Rahul Ram

Try following, Copy everything from python directory (e.g. C:Python) from one to the other Copy all your programms in the same way Look for environment variables related to Python (such as PYTHONPATH) and replicate on the other computer. Leave a feedback if this worked.

Amol Gawai

I was planning on trying to find all those libraries again, and reinstalling them.

Neil Aggarwal

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.