📅  最后修改于: 2023-12-03 15:33:41.952000             🧑  作者: Mango
If you are working with Python and you've recently noticed that pip freeze
is not showing package versions that include the "@" symbol, do not worry. This is actually an expected behavior, and it is not indicative of any errors or issues.
pip freeze
is a command in pip (Python Package Index) which is used to display a list of installed Python packages and their versions. This helps users to easily keep track of what packages have been installed, and ensure that their projects are using compatible versions of each package.
The "@" symbol is commonly used in the names of packages which are installed from a repository or source control. For example, a package name might look like "my-package@repo". When pip freeze
displays this package, it will not include the "@repo" part of the name. This is because pip freeze
is only concerned with displaying the installed package names and their versions, not their sources.
If you want to view the full package names, including the "@" symbol, you can use the pip list
command instead of pip freeze
. pip list
will display the names of all installed packages, along with their versions, sources, and other metadata.
$ pip list
Package Version Location
------------------- ----------- ----------------------------
my-package@repo 1.0.0 /path/to/my-package
...
In summary, if pip freeze
is not showing package versions that include the "@" symbol, it is not a cause for concern. This is expected behavior, and you can use pip list
to view the full package names if needed.