简体   繁体   English

列出带有pip冻结的已安装软件包时,获得“ -e”值是什么意思?

[英]What does it mean to get an “-e” value when listing installed packages with pip freeze?

I just created a new virtual environment in my Windows 8 box, I have not installed any package yet. 我刚刚在Windows 8盒中创建了一个新的虚拟环境,但尚未安装任何软件包。 After activating the new virtual environment, if I do a pip freeze, I get a weird reference to a github project. 激活新的虚拟环境后,如果冻结了一点,则会得到对github项目的奇怪引用。 What does that mean? 这意味着什么? How do I get rid of it? 我如何摆脱它?

(my_virtual_env) C:\>pip freeze
-e git+git@github.com:my_repo.git@221689bbe130338b04a2d837ebe69a9ccc695f8a#egg=my_repo-origin/my_branch

If you want new virtualenvs to be completely clean, then use: 如果您希望新的virtualenvs完全干净,请使用:

virtualenv --no-site-packages new-virtualenv-name

...when generating them. ...生成它们时 Otherwise, they contain all packages installed in your main Python installation (outside any virtualenv). 否则,它们包含安装在您的主要Python安装中的所有软件包(任何virtualenv之外)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM