Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install throws TypeError when solving conflict #12943

Open
1 task done
xuyan-ru opened this issue Aug 28, 2024 · 1 comment
Open
1 task done

pip install throws TypeError when solving conflict #12943

xuyan-ru opened this issue Aug 28, 2024 · 1 comment
Labels
S: awaiting response Waiting for a response/more information type: support User Support

Comments

@xuyan-ru
Copy link

Description

I have a python environment mainly managed by conda/mamba, and when I was trying to install pytorch with pip, I got some TypeError: expected string or byte-like object, got 'NoneType'. I don't think this is something wrong with my environment, probably a bug in pip

Expected behavior

No response

pip version

24.2

Python version

3.11.9

OS

Linux (RH7)

How to Reproduce

pip3 install torch --index-url https://download.pytorch.org/whl/cu118

Output

image

Code of Conduct

@xuyan-ru xuyan-ru added S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior labels Aug 28, 2024
@notatallshaw
Copy link
Member

The exception implies that you have a broken package installed, i.e. a version can not be found from the dist info.

Do you get the same error when you run pip3 list? Does it work if you run pip3 install --ignore-installed (if it works this is not a real solution, you should fix your environment)?

@notatallshaw notatallshaw added type: support User Support S: awaiting response Waiting for a response/more information and removed type: bug A confirmed bug or unintended behavior S: needs triage Issues/PRs that need to be triaged labels Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S: awaiting response Waiting for a response/more information type: support User Support
Projects
None yet
Development

No branches or pull requests

2 participants