I have a Python package with a specific version installed in my virtual environment, but it has been removed from PyPI and I don’t have access to its source code. I’m trying to create a wheel file from this installed package so that I can replicate the setup in another environment.
Here’s what I’ve tried so far:
pip wheel --no-index --no-deps --wheel-dir ./ <my-package>
ERROR: Could not find a version that satisfies the requirement <my-package> (from versions: none)
ERROR: No matching distribution found for <my-package>
But it does exist in my virtual environment
pip freeze | grep <my-package>
<my-package>==<my-package-version>
New contributor
WissemBT is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.