Error while checking for conflicts
See original GitHub issueDescription
I tried to install FasAPI via Spyder. It seems to have worked, but pip showed an error and asked me to post it here as an issue, so here you go.
Expected behavior
No response
pip version
22.2
Python version
3.10.5 (main, Jun 6 2022, 18:49:26) [GCC 12.1.0]
OS
Operating System: Manjaro Linux KDE Plasma Version: 5.24.6 KDE Frameworks Version: 5.96.0 Qt Version: 5.15.5 Kernel Version: 5.15.57-2-MANJARO (64-bit) Graphics Platform: X11 Processors: 12 Γ AMD Ryzen 5 3600 6-Core Processor Memory: 15.6 GiB of RAM Graphics Processor: AMD Radeon RX 550 / 550 Series
How to Reproduce
-
Open Spyder IDE 5.3.2
-
Open an IPython console (IPython 8.4.0)
-
run !pip install fastapi
Output
Defaulting to user installation because normal site-packages is not writeable
Collecting fastapi
Downloading fastapi-0.79.0-py3-none-any.whl (54 kB)
ββββββββββββββββββββββββββββββββββββββββ 54.6/54.6 kB 2.0 MB/s eta 0:00:00
[?25hCollecting starlette==0.19.1
Downloading starlette-0.19.1-py3-none-any.whl (63 kB)
ββββββββββββββββββββββββββββββββββββββββ 63.3/63.3 kB 13.9 MB/s eta 0:00:00
ollecting pydantic!=1.7,!=1.7.1,!=1.7.2,!=1.7.3,!=1.8,!=1.8.1,<2.0.0,>=1.6.2
Downloading pydantic-1.9.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.0 MB)
ββββββββββββββββββββββββββββββββββββββββ 12.0/12.0 MB 33.4 MB/s eta 0:00:00
irement already satisfied: anyio<5,>=3.4.0 in /usr/lib/python3.10/site-packages (from starlette==0.19.1->fastapi) (3.6.1)
Requirement already satisfied: typing-extensions>=3.7.4.3 in /usr/lib/python3.10/site-packages (from pydantic!=1.7,!=1.7.1,!=1.7.2,!=1.7.3,!=1.8,!=1.8.1,<2.0.0,>=1.6.2->fastapi) (4.2.0)
Requirement already satisfied: idna>=2.8 in /usr/lib/python3.10/site-packages (from anyio<5,>=3.4.0->starlette==0.19.1->fastapi) (3.3)
Requirement already satisfied: sniffio>=1.1 in /usr/lib/python3.10/site-packages (from anyio<5,>=3.4.0->starlette==0.19.1->fastapi) (1.2.0)
ERROR: Error while checking for conflicts. Please file an issue on pip's issue tracker: https://github.com/pypa/pip/issues/new
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/pip/_internal/commands/install.py", line 585, in _determine_conflicts
return check_install_conflicts(to_install)
File "/usr/lib/python3.10/site-packages/pip/_internal/operations/check.py", line 110, in check_install_conflicts
check_package_set(
File "/usr/lib/python3.10/site-packages/pip/_internal/operations/check.py", line 85, in check_package_set
if not req.specifier.contains(version, prereleases=True):
File "/home/carles/.local/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/specifiers.py", line 728, in contains
item = parse(item)
File "/home/carles/.local/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/version.py", line 49, in parse
return Version(version)
File "/home/carles/.local/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/version.py", line 264, in __init__
match = self._regex.search(version)
TypeError: expected string or bytes-like object
Installing collected packages: pydantic, starlette, fastapi
Successfully installed fastapi-0.79.0 pydantic-1.9.1 starlette-0.19.1
Code of Conduct
- I agree to follow the PSF Code of Conduct.
Issue Analytics
- State:
- Created a year ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
pip install ERROR : Error while checking for conflicts #8680
pip version:20.2 Python version:Python 3.7.4 Operating system: macOS Catalina 10.15.6 How can i fix this error??? i want to do pip install.
Read more >pip is giving conflict error while installing package
The solution seems to be to find any directories starting with - in your site-packages directory ( /Users/tejeshagrawal/Library/Python/3.7/lib/Β ...
Read more >Troubleshoot common coauthoring errors
Troubleshoot and fix coauthoring errors. ... Select Next on the Conflicts tab to navigate through each change. Accept or reject each change.
Read more >How To Fix the β409 Conflictβ Error (5 Methods)
1. Check the Requested URL ... As we mentioned earlier, the β409 Conflictβ error can arise from incorrect information in a PUT request....
Read more >The Nine Circles of Python Dependency Hell | by Knewton
Pip-conflict-checker is a great tool for quickly determining whether you have any version conflicts. It recursively checks the requirements of each libraryΒ ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@pfmoore Pip version is identical in docker and local, and I have NEVEN installed/updated any pip packages to root site package using pip. Unless
python-pip
is causing some problem, which is provided by OS maintainer.Closing this for now; please raise the issue to the OS pip provider first. We can always reopen if they identify the issue in pip.