0

Say I have a virtualenv environment myenv1 and another, myenv2. I have some packages installed in myenv1, and I would like to install them on myenv2 as well. Is there a way to install them in myenv2 using myenv1?

I referred to the following link, but apparently that requires a requirement.txt to be present.

However, I have installed many packages on the go, and I do not have a prepared requirement.txt for myenv1. Also, the second step requires downloading the required packages again to a folder. Is there a way to achieve the said without downloading anything again?

ghost
  • 987
  • 2
  • 9
  • 27
  • did you try to follow the steps from the linked question's answer? `pip install` won't delete any packages you have already installed in myenv2 – FObersteiner Aug 06 '20 at 10:30
  • I just want a couple of packages, and so I'm refraining from the said approach. – ghost Aug 06 '20 at 10:42
  • well, you could also edit the requirements.txt before calling for the download / install? – FObersteiner Aug 06 '20 at 10:43
  • The second step in the link still requires downloading the packages again. I wonder if there was a workaround for that. – ghost Aug 06 '20 at 10:50

0 Answers0