''pipenv install <package>' fails on fresh python3.10 installation

Just installed a fresh copy of Python3.10 via Pop OS, followed by pip and the python Pipenv package. Installing pip packages works fine globally, but if I try to use pip inside a virtual environment on its own (for any package, Numpy to name one) I get:

From running pipenv install <package> from outside my venv in the project folder,

Installing numpy...
Error:  An error occurred while installing numpy!
Error text: 
/home/xxxxx/.local/share/virtualenvs/xx-xxxxx-Kg4m1CDN/bin/python: No module named pip

✘ Installation Failed

and from pip install <package> from inside the venv,

Traceback (most recent call last):
  File "/home/xxxxx/.local/share/virtualenvs/xx-xxxxx-Kg4m1CDN/bin/pip", line 5, in <module>
    from pip._internal.cli.main import main
ModuleNotFoundError: No module named 'pip'

version details:

python3.10 --version: Python 3.10.0b1

python3.10 -m pip -V: pip 21.3.1 from /home/xxxxx/.local/lib/python3.10/site-packages/pip (python 3.10)

(specific names x-ed out for privacy)

I've already googled around and checked the Pipenv GitHub so I'm stumped. Hopefully this is something simple that I've so far managed to avoid but I have no idea where to go from here - any help would be appreciated!

If there are any other logs or any info needed just let me know.



Solution 1:[1]

I've come up with the same issue also. And the only solution for me is to install Python 3.9 in addition.

You can download from here: https://www.python.org/downloads/release/python-3912/

After installing the Python 3.9.12 (don't forget to tick the "Add Python to PATH" checkbox), the problem will be resolved.

Solution 2:[2]

You need to install pip again in the env. Refer to the links below:-

[a link] <https://www.geeksforgeeks.org/how-to-install-pip-on-windows/>
[a link] <https://www.geeksforgeeks.org/how-to-install-pip-in-linux/>
[a link] <https://www.geeksforgeeks.org/how-to-install-pip-in-macos/>

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Nora
Solution 2