question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pipenv install xxx package error in python 3.10 version

See original GitHub issue
  1. ubuntu 20.04
  2. python 3.10.4
  3. pipenv --version version 11.9.0
  4. pipenv shell (working fine)
  5. pipenv install celery (error)
Installing celery…
⠇
Error:  An error occurred while installing celery!
Traceback (most recent call last):
  File "/home/xx/.local/share/virtualenvs/yy-VQZGIAqw/bin/pip", line 8, in <module>
    sys.exit(main())
  File "/home/xx/.local/share/virtualenvs/yy-VQZGIAqw/lib/python3.10/site-packages/pip/_internal/cli/main.py", line 73, in main
    command = create_command(cmd_name, isolated=("--isolated" in cmd_args))
  File "/home/xx/.local/share/virtualenvs/yy-VQZGIAqw/lib/python3.10/site-packages/pip/_internal/commands/__init__.py", line 96, in create_command
    module = importlib.import_module(module_path)
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/xx/.local/share/virtualenvs/yy-VQZGIAqw/lib/python3.10/site-packages/pip/_internal/commands/install.py", line 24, in <module>
    from pip._internal.cli.req_command import RequirementCommand
  File "/home/xx/.local/share/virtualenvs/yy-VQZGIAqw/lib/python3.10/site-packages/pip/_internal/cli/req_command.py", line 15, in <module>
    from pip._internal.index.package_finder import PackageFinder
  File "/home/xx/.local/share/virtualenvs/yy-VQZGIAqw/lib/python3.10/site-packages/pip/_internal/index/package_finder.py", line 21, in <module>
    from pip._internal.index.collector import parse_links
  File "/home/xx/.local/share/virtualenvs/yy-VQZGIAqw/lib/python3.10/site-packages/pip/_internal/index/collector.py", line 12, in <module>
    from pip._vendor import html5lib, requests
ImportError: cannot import name 'html5lib' from 'pip._vendor' (/home/xx/.local/share/virtualenvs/yy-VQZGIAqw/lib/python3.10/site-packages/pip/_vendor/__init__.py)

How to solve this error?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:13

github_iconTop GitHub Comments

1reaction
matteiuscommented, Aug 6, 2022

The new version of pipenv==2022.8.5 should not depend on the system/user installed pip.

1reaction
matteiuscommented, Jul 10, 2022

@agpldev I don’t recommend folks to use DeadSnakes in a production or critical environment.

From their own page: https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa

Disclaimer: there’s no guarantee of timely updates in case of security problems or other issues. If you want to use them in a security-or-otherwise-critical environment (say, on a production server), you do so at your own risk.

Read more comments on GitHub >

github_iconTop Results From Across the Web

'pipenv install <package>' fails on fresh python3.10 installation
After installing the Python 3.9.12 (don't forget to tick the "Add Python to PATH" checkbox), the problem will be resolved.
Read more >
Why you should use Poetry instead of Pip or Conda for Python ...
I know, “ditch xx totally” is a pretty strong phrase right there, but I have my reasons for saying this. Pre-installed packages in...
Read more >
Install and Setup | ArcGIS API for Python
Installation using Python Package Manager · Click on 'Add Packages' button and type package name into the search bar. · Select the release...
Read more >
Appium-Python-Client - PyPI
Python client for Appium. ... Since v2.0.0, the base selenium client version is v4. The version only ... cd Appium-Python-Client-X.X python setup.py install....
Read more >
What's New In Python 3.11 — Python 3.11.1 documentation
Summary – Release highlights¶. Python 3.11 is between 10-60% faster than Python 3.10. On average, we measured a 1.25x speedup on the standard...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found