0

I am working with a project in django where i am using virtual enviroment using pipenv shell (which created enviroment name (Django_and_Rest-YRrszWnq)) so in this enviroment I have installed many packages releated to this project

Now I started new project and also i want to used above virtual enviroment How to activate this ((Django_and_Rest-YRrszWnq)) enviroment to new project using pipenv command ?

1 Answers1

0

From the environment (Django_and_Rest-YRrszWnq) run pip freeze > requirements.txt and then copy the requirements.txt file to the new project. Then from inside the new project folder, run pipenv shell this creates a new environment. Then run pip install -r requirements.txt. Now you have a new virtual environment with the exact dependencies as the old environment.

If you find this solution helpful, kindly upvote the solution. Thank you.

Kishore
  • 627
  • 1
  • 7