Skip to content

parse error at '-irtuale', but virtualenv is correct  #7763

@ujinyng

Description

@ujinyng

Environment

  • pip version: 19.3.1 and 19.2.3
  • Python version: 3.7.6
  • OS: mac catalina

Description

In locale home directory
I try this :
pip freeze>tflist.txt

but show :
WARNING: Could not generate requirement for distribution -irtualenv 20.0.4 (/usr/local/lib/python3.7/site-packages): Parse error at "'-irtuale'": Expected W:(abcd...)

and the file tflist.txt is generated, but empty.

I think 'virtualenv' is correct, but when I command 'pip list'
the result is :

Package            Version
------------------ -------
-irtualenv         20.0.4

.
.
.

but I cannot uninstall -rtualenv.
I try this : pip uninstall -irtualenv, and pip uninstall virtualenv
Both are failed, the message is is not installed

well, I succese to reinstall virtualenv, using pip install virtualenv

but How can I remove the wrong name package?
and who knows why the problem happens?

when I try pip freeze
'-virtualenv', the worng name is not involved the ouput .
So I think maybe the pip list command is wrong and have some bug. etc. parse error..

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: uninstallThe logic for uninstallation of packagesauto-lockedOutdated issues that have been locked by automationtype: bugA confirmed bug or unintended behavior

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions