jason
jason

Reputation: 4439

get python 2.7 packages and install them for python 3.6

I'm starting to move to python 3 and the headache of installing all of the packages from 2.7 to 3.6 one by one gives me a headache just thinking about it. Is there a library to do this automatically?

Upvotes: 0

Views: 36

Answers (1)

adambro
adambro

Reputation: 319

Use pip freeze > requirements.txt to create a file listing the Python 2 packages you have installed then pip3 install -r requirements.txt --upgrade to install the same packages for Python 3.

Upvotes: 1

Related Questions