我正在尝试在cmd中运行
pipenv install
。但我不断收到错误
Warning: Python 3.9 was not found on your system...
Neither 'pyenv' nor 'asdf' could be found to install Python.
You can specify specific versions of Python with:
$ pipenv --python path\to\python`
I have python install and i ran pip install pipenv and it says
`Requirement already satisfied: pipenv in c:\users\lilys\appdata\roaming\python\python312\site-packages (2024.0.1)
Requirement already satisfied: certifi in c:\users\lilys\appdata\roaming\python\python312\site-packages (from pipenv) (2024.7.4)
Requirement already satisfied: setuptools>=67 in c:\users\lilys\appdata\roaming\python\python312\site-packages (from pipenv) (70.2.0)
Requirement already satisfied: virtualenv>=20.24.2 in c:\users\lilys\appdata\roaming\python\python312\site-packages (from pipenv) (20.26.3)
Requirement already satisfied: distlib<1,>=0.3.7 in c:\users\lilys\appdata\roaming\python\python312\site-packages (from virtualenv>=20.24.2->pipenv) (0.3.8)
Requirement already satisfied: filelock<4,>=3.12.2 in c:\users\lilys\appdata\roaming\python\python312\site-packages (from virtualenv>=20.24.2->pipenv) (3.15.4)
Requirement already satisfied: platformdirs<5,>=3.9.1 in c:\users\lilys\appdata\roaming\python\python312\site-packages (from virtualenv>=20.24.2->pipenv) (4.2.2)`
I also ran `pipenv sync --python=/path/to/location/python` and got
`Usage: pipenv sync [OPTIONS]
Try 'pipenv sync -h' for help.
Error: Invalid value for '--python': Expected Python at path /path/to/location/python does not exist
我该如何解决这个问题?`
尝试运行以下命令
python -m pip show pipenv # see if python is installed properly
pipenv --py # see the python that env is using
python --version # make sure the python you are using is version 3.9