Fix pip freeze @ file:// in Python – Python Tutorial

By | August 2, 2023

We can use pip freeze to create a requirements.txt to contain all python packages we have installed. Here is the tutorial:

Pip Create requirements.txt and Install Python Packages – Python Tutorial

However, we may find some packages ends with @ file. For example:

Fix pip freeze file in Python - Python Tutorial

How to make all packages end with version?

We can do as follows:

pip list --format=freeze > requirements.txt

Finally, we will find all @ file is missing.