Can't install pipenv following the Learn Python:pipenv course!

*Can’t install pipenv. I try different options but none of these resolved the problem

Requirement already satisfied: filelock<4,>=3.4.1 in ./opt/anaconda3/lib/python3.9/site-packages (from virtualenv>=20.17.1->pipenv) (3.6.0) Collecting platformdirs<4,>=2.4 Downloading platformdirs-3.1.1-py3-none-any.whl (14 kB) Installing collected packages: platformdirs, distlib, virtualenv-clone, virtualenv, setuptools, pipenv WARNING: The script virtualenv-clone is installed in '/Users/luc-emile/.local/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. WARNING: The script virtualenv is installed in '/Users/luc-emile/.local/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. WARNING: The scripts pipenv and pipenv-resolver are installed in '/Users/luc-emile/.local/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. spyder 5.1.5 requires pyqt5<5.13, which is not installed. spyder 5.1.5 requires pyqtwebengine<5.13, which is not installed. conda-repo-cli 1.0.4 requires pathlib, which is not installed. anaconda-project 0.10.2 requires ruamel-yaml, which is not installed. Successfully installed distlib-0.3.6 pipenv-2023.3.20 platformdirs-3.1.1 setuptools-67.6.0 virtualenv-20.21.0 virtualenv-clone-0.5.7

Can you please help me ?

It looks like pipenv was installed successfully, but there are some dependency conflicts with other packages. Specifically, spyder 5.1.5 requires pyqt5 and pyqtwebengine versions that are not installed, and conda-repo-cli 1.0.4 requires pathlib, which is also not installed.

You could try installing these packages separately using pip or conda, or updating them if they are already installed. For example, to install pathlib with pip, you can run:

pip install pathlib

To update an already installed package, you can use the --upgrade flag:

pip install spyder --upgrade

Alternatively, you could consider using a virtual environment for your project to isolate it from other packages on your system. This can help avoid conflicts like the ones you’re experiencing. To create a virtual environment with pipenv, you can run:

pipenv install

This will create a new virtual environment and install the packages listed in your Pipfile.