#Extract List of python Packages pip freeze > requirements.txt #Remove version numbers from the requirements.txt file to install latest version #You need to change the requirement.txt file to remove all the version dependencies. you can parse #the file for that. Or use regex. ==\w+.+.+ #This will select all the element after symbol == including the symbol. #Replace with null empty string. #Open the requirements.txt in some editor that support regex (for example vs code). #Then use find and replace. (ctrl + f in vs code) #choose regex option. (click on .* in find and replace context menu in vs code) #in find put ==\w+.+.+ in replace put nothing. (keep it empty) #then replace all. #Then pip install requirements.txt and you are good to go. #Install requirements file pip install -r requirements.txt