Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/309.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 如何修复';错误:错误:找不到与pillow';pipenv中的错误_Python_Pipenv - Fatal编程技术网

Python 如何修复';错误:错误:找不到与pillow';pipenv中的错误

Python 如何修复';错误:错误:找不到与pillow';pipenv中的错误,python,pipenv,Python,Pipenv,我正在尝试使用pipenv安装pyqt5 此错误出现在pipenv外壳中 错误:错误:找不到与枕头匹配的版本 我试过运行以下命令[pipenv install--skip lock和pipenv lock-clear],但仍然出现相同的错误 (PYQT5-oLhRixBB) D:\PYQT5>pipenv install pyqt5 Installing pyqt5… Adding pyqt5 to Pipfile's [packages]… Installation Succeeded

我正在尝试使用pipenv安装pyqt5

此错误出现在pipenv外壳中

错误:错误:找不到与枕头匹配的版本

我试过运行以下命令[pipenv install--skip lock和pipenv lock-clear],但仍然出现相同的错误

(PYQT5-oLhRixBB) D:\PYQT5>pipenv install pyqt5
Installing pyqt5…
Adding pyqt5 to Pipfile's [packages]…
Installation Succeeded
Pipfile.lock not found, creating…
Locking [dev-packages] dependencies…
Locking [packages] dependencies…
Locking Failed!
[pipenv.exceptions.ResolutionFailure]:   File "C:/Users/Hasee/AppData/Roaming/Python/Python36/site-packages/pipenv/resolver.py", line 69, in resolve
[pipenv.exceptions.ResolutionFailure]:       req_dir=requirements_dir
[pipenv.exceptions.ResolutionFailure]:   File "C:\Users\Hasee\AppData\Roaming\Python\Python36\site-packages\pipenv\utils.py", line 726, in resolve_deps
[pipenv.exceptions.ResolutionFailure]:       req_dir=req_dir,
[pipenv.exceptions.ResolutionFailure]:   File "C:\Users\Hasee\AppData\Roaming\Python\Python36\site-packages\pipenv\utils.py", line 480, in actually_resolve_deps
[pipenv.exceptions.ResolutionFailure]:       resolved_tree = resolver.resolve()
[pipenv.exceptions.ResolutionFailure]:   File "C:\Users\Hasee\AppData\Roaming\Python\Python36\site-packages\pipenv\utils.py", line 395, in resolve
[pipenv.exceptions.ResolutionFailure]:       raise ResolutionFailure(message=str(e))
[pipenv.exceptions.ResolutionFailure]:       pipenv.exceptions.ResolutionFailure: ERROR: ERROR: Could not find a version that matches pillow
[pipenv.exceptions.ResolutionFailure]:       No versions found
[pipenv.exceptions.ResolutionFailure]: Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.
  First try clearing your dependency cache with $ pipenv lock --clear, then try the original command again.
 Alternatively, you can use $ pipenv install --skip-lock to bypass this mechanism, then run $ pipenv graph to inspect the situation.
  Hint: try $ pipenv lock --pre if it is a pre-release dependency.
ERROR: ERROR: Could not find a version that matches pillow
No versions found
Was http://pypi.douban.com/simple reachable?
[pipenv.exceptions.ResolutionFailure]:       req_dir=requirements_dir
[pipenv.exceptions.ResolutionFailure]:   File "C:\Users\Hasee\AppData\Roaming\Python\Python36\site-packages\pipenv\utils.py", line 726, in resolve_deps
[pipenv.exceptions.ResolutionFailure]:       req_dir=req_dir,
[pipenv.exceptions.ResolutionFailure]:   File "C:\Users\Hasee\AppData\Roaming\Python\Python36\site-packages\pipenv\utils.py", line 480, in actually_resolve_deps
[pipenv.exceptions.ResolutionFailure]:       resolved_tree = resolver.resolve()
[pipenv.exceptions.ResolutionFailure]:   File "C:\Users\Hasee\AppData\Roaming\Python\Python36\site-packages\pipenv\utils.py", line 395, in resolve
[pipenv.exceptions.ResolutionFailure]:       raise ResolutionFailure(message=str(e))
[pipenv.exceptions.ResolutionFailure]:       pipenv.exceptions.ResolutionFailure: ERROR: ERROR: Could not find a version that matches pillow
[pipenv.exceptions.ResolutionFailure]:       No versions found
[pipenv.exceptions.ResolutionFailure]: Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.
  First try clearing your dependency cache with $ pipenv lock --clear, then try the original command again.
 Alternatively, you can use $ pipenv install --skip-lock to bypass this mechanism, then run $ pipenv graph to inspect the situation.
  Hint: try $ pipenv lock --pre if it is a pre-release dependency.
ERROR: ERROR: Could not find a version that matches pillow
No versions found
Was http://pypi.douban.com/simple reachable?

你能告诉我们你试过的确切命令吗?你试过
pipenv安装pillow
?我试过pipenv安装pillow,结果是一样的。你试过以root用户身份运行它吗?因为我运行的是Windows,所以我试过以管理员身份运行。我不太了解pipenv,但是发布你的pipnv文件不是很好吗?