Cannot remove pip package with strange name
Hello,
I installed a package called `pycryptodome`, using the Python Interpreter interface in settings.
For some reason, the package is now shown as `-ycryptodome' and I cannot delete it.

Neither pressing the "-" option or manually typing `pip uninstall -ycryptodome` or `pip uninstall pycryptodome` in the venv do the trick.
My version of PyCharmL
PyCharm 2020.2 (Professional Edition)
Build #PY-202.6397.98, built on July 27, 2020
Any advice?
Please sign in to leave a comment.
Hello,
Could you please activate (https://virtualenv.pypa.io/en/latest/user_guide.html#activators) the same venv in a cmd/terminal and run :
pip freeze
Will you see the same package name?
I have tried to install it in my venv and it looks normal.
-ycryptodome shows when I do `pip list`, but not when I freeze:
"WARNING: Could not generate requirement for distribution -ycryptodome 3.9.8 (e:\path\to\project\venv\lib\site-packages): Parse error at "'-ycrypto'": Expected W:(abcd...)"
-ycryptodome was not always in my list, I am afraid there is a more complicated repro for it to show up. My problem, however, is that I am stuck with it and can't remove it.
Please try to uninstall the package from the command line, running:
pip uninstall -ycryptodome
or
pip uninstall pycryptodome
I am wondering what is the folder name under e:\path\to\project\venv\lib\site-packages for the package?
The case is very rare and specific, I cannot find ane information about similar cases. Are you able to reproduce it with a newly created venv?
I did try the command line as I said in the initial report, unfortunately, it doesn't work. :(
I have the following folders in site-package, along with the proper pycryptodome folders.
I can't repro it in a different venv. I do believe the repro is complicated. I don't even think it would happen again. But what I would like now is to be able to remove this package, to be able to do a freeze.
Hello,
it seems like the only way to get rid of the package is manually remove the folder. Please see the related ticket https://github.com/pypa/pip/issues/7763